PlayerMode
An enum in Alta.Platform, the global namespace.
Flags for how a player is playing: flat modes (Fly, AutoCam) or a VR runtime (OpenVR, Oculus, OpenXR, Meta Quest, Pico). Unassigned (0) means not yet known. ControllerExtension and the game commands use it.
- Listed in Other Alta assemblies
- Attributes
Flags - Documented in Player
Values
| Member |
|---|
AutoCam = 2 |
Fly = 1 |
MetaQuest = 40 |
Oculus = 8 |
OpenVR = 4 |
OpenXR = 28 |
PicoXR = 64 |
Unassigned = 0 |
Used in
Members of other types that take, return or hold a PlayerMode:
Hand.platform, PlatformHandAlignment.platform, PlatformHandAlignment.Platform, GameCommandModule.ConnectToPlayer, GameCommandModule.ConnectToServer, GameCommandModule.JoinServerAsync, GameCommandModule.JoinServerAtIpAsync, GameCommandModule.JoinServerAtLocalIpAsync, GameCommandModule.StartLocalTestAsync, GameCommandModule.StartLocalTestWithSceneAsync, RequestJoinMessage.playerMode, RequestJoinMessage.PlayerMode, RequestJoinMessage.RequestJoinMessage, IPlayer.PlayerMode, PlayerJoinLeaveData.mode, ServerHandler.playerModes, ServerHandler.UserJoined, ServerPlayerConnectionHandlerOld.CheckIfPlayerIsAllowed, ServerPlayerConnectionHandlerOld.CheckIfPlayerIsAllowedCustom, ServerPlayerConnectionHandlerOld.PlayerAccepted, ServerPlayerConnectionHandlerOld.UserJoined, SettingBasedToggler.expectedModes, PlayerControllerPrefabs.GetController, PlayerControllerPrefabs.GetMenuController, AutoCamDeviceController.Mode, ControllerActionMode.GetMapping, ControllerActionMode.platformActionMappings, ControllerActionMode.PlatformActionMappings, ControllerExtension.activeFor, ControllerOffsetSettings.GetControllerOffsetForHand, DeviceControllerFactory.Create, FlyCamDeviceController.Mode, InputToActionMapping.GetButtonsForPlatform, IPlatformPlayer.PlayerMode, IXrDeviceSdkController.Mode, LocomotionlessPlayerController.PlayerMode, MainMenuPlayerController.PlayerMode, OpenXRDeviceController.Mode, PlatformActionMapping.AddMapping, PlatformActionMapping.platform, PlatformActionMapping.Platform, PlatformDriver.mode, PlatformDriver.Mode, PlatformDriver.SetupPlatform, PlatformDriver.StartPlatform, PlatformDriver.StartPlatformCoroutine, PlatformHandler.BeginInvoke, PlatformHandler.Invoke, PlatformModeHandler.BeginInvoke, PlatformModeHandler.Invoke, Player.InitializePlayerOnServer, Player.playerMode, Player.PlayerMode, Player.SetPlayerMode, Player.validSavingModes, PlayerModeExtensions.CheckCosmetics, PlayerModeExtensions.CheckVR, PlayerModeExtensions.Cosmetics, PlayerModeExtensions.VR, PlayerModeOverride.Override and 13 more.