Navigation
API > API/Editor > API/Editor/VREditor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEditorWorldExtension
- UVREditorModeBase
- UVREditorMode
References
| Module | VREditor |
| Header | /Engine/Source/Editor/VREditor/Public/VREditorModeBase.h |
| Include | #include "VREditorModeBase.h" |
Syntax
class UVREditorModeBase : public UEditorWorldExtension
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bActuallyUsingVR | True if we're in using an actual HMD in this mode, or false if we're "faking" VR mode for testing | |
| FOnVRModeEntryComplete | OnVRModeEntryCompleteEvent | Delegate broadcast when async VR mode entry is completed. | |
| TSharedPtr< FBaseSavedEditorState > | SavedEditorStatePtr | ||
| TWeakPtr< SLevelViewport > | VREditorLevelViewportWeakPtr |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CloseViewport
(
bool bShouldDisableStereo |
Close the current viewport | |
| TSharedRef< FBaseSavedEditorState > | Derived classes can override this to return a derived state struct, and add their own saved state. | ||
| void | |||
| void | EnableStereo () |
||
| void | Enter () |
||
| void | Exit
(
bool bShouldDisableStereo |
||
| FTransform | Returns the user's head pose in world space. | ||
| bool | GetLaserForHand
(
EControllerHand InHand, |
Gives start and end points in world space for an active laser, or returns false if there is no active laser for the specified hand. | |
| SLevelViewport & | TODO: Deprecate these in favor of replacements below; viewport may be null. | ||
| const SLevelViewport & | TODO: Deprecate these in favor of replacements below; viewport may be null. | ||
| FTransform | Returns the transform which takes poses from XR tracking space ("room" space) to world space. | ||
| TSharedPtr< const SLevelViewport > | |||
| TSharedPtr< SLevelViewport > | |||
| bool | Returns true if we're actually using VR, or false if we're faking it | ||
| FOnVRModeEntryComplete & | |||
| FBaseSavedEditorState & | Gets the saved editor state from entering the mode | ||
| const FBaseSavedEditorState & | |||
| void | SetActuallyUsingVR
(
bool bShouldActuallyUseVR |
Sets whether we should actually use an HMD. Call this before activating VR mode | |
| void | StartViewport
(
TSharedPtr< SLevelViewport > Viewport |
Start using the viewport passed | |
| bool | Returns true if the user wants to exit this mode |
Overridden from UEditorWorldExtension
| Type | Name | Description | |
|---|---|---|---|
| void | Init () |
Initialize extension | |
| void | Shutdown () |
Shut down extension when world is destroyed |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FBaseSavedEditorState | Saved information about the editor and viewport we possessed, so we can restore it after exiting VR mode |
Typedefs
| Name | Description |
|---|---|
| FOnVRModeEntryComplete | Delegate to be called when async VR mode entry has been completed. |