IHeadMountedDisplay::GetHMDWornState

Returns [EHMDWornState::Worn](API\Runtime\HeadMountedDisplay\EHMDWornState__Type) if we detect that the user is wearing the HMD, [EHMDWornState::NotWorn](API\Runtime\HeadMountedDisplay\EHMDWornState__Type) if we detect the user is not wearing the HMD, and [EHMDWornState::Unknown](API\Runtime\HeadMountedDisplay\EHMDWornState__Type) if we cannot detect the state.

Windows
MacOS
Linux

References

Module

HeadMountedDisplay

Header

/Engine/Source/Runtime/HeadMountedDisplay/Public/IHeadMountedDisplay.h

Include

#include "IHeadMountedDisplay.h"

Syntax

virtual EHMDWornState::Type GetHMDWornState()

Remarks

Returns EHMDWornState::Worn if we detect that the user is wearing the HMD, EHMDWornState::NotWorn if we detect the user is not wearing the HMD, and EHMDWornState::Unknown if we cannot detect the state.

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