UVREditorMode::GetLevelViewportPossessedForVR

Gets the viewport that VR Mode is activated in.

Windows
MacOS
Linux

References

Module

VREditor

Header

/Engine/Source/Editor/VREditor/Public/VREditorMode.h

Include

#include "VREditorMode.h"

Syntax

const SLevelViewport & GetLevelViewportPossessedForVR() const

Remarks

Gets the viewport that VR Mode is activated in. Even though editor modes are available in all level viewports simultaneously, only one viewport is "possessed" by the HMD. Generally try to avoid using this function and instead use the ViewportClient that is passed around through various FEdMode overrides

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss