Navigation
API > API/Editor > API/Editor/VREditor > API/Editor/VREditor/IVREditorModule
Description
Enables or disables editor VR features. Calling this to active VR will turn on the HMD and setup the editor UI for VR interaction.
| Name | EnableVREditor |
| Type | function |
| Header File | /Engine/Source/Editor/VREditor/Public/IVREditorModule.h |
| Include Path | #include "IVREditorModule.h" |
void EnableVREditor
(
const bool bEnable,
const bool bForceWithoutHMD
)
Parameters
| Name | Remarks |
|---|---|
| bEnable | True to enable VR, or false to turn it off |
| bForceWithoutHMD | If set to true, will enter VR mode without switching to HMD/stereo. This can be useful for testing. |