Skip to main content

PlayerModeExtensions

A static class in Alta.Platform, the global namespace.

Extension methods on the PlayerMode flags.

Fields​

2 private and internal fields
MemberWhat it is
private const PlayerMode CosmeticsFlag mask of the modes that use cosmetics. Same as VR.
private const PlayerMode VRFlag mask of the VR modes: OpenVR, Oculus and PicoXR.

Methods​

MemberWhat it is
static bool CheckCosmetics(PlayerMode mode)True if the mode is a VR mode (OpenVR, Oculus or PicoXR). Same test as CheckVR.
static bool CheckVR(PlayerMode mode)True if the mode includes OpenVR, Oculus or PicoXR.