IPlatformPlayer
An interface in Root.Township, the global namespace.
The platform-specific side of a player (VR rig, fly cam and so on): its hand inputs, transform and player controller.
- Listed in Global namespace: I to L
- Derived types
LocomotionlessPlayerController,MainMenuPlayerController,Player
Properties
| Member | What it is |
|---|---|
bool IsLoaded { get; } | True once the platform player is ready. |
bool IsLocalPlayer { get; } | True for the player on this machine. |
PlayerInput LeftInput { get; } | Input for the left hand. |
PlayerController PlayerController { get; } | The player controller it drives. |
PlayerMode PlayerMode { get; } | Which PlayerMode this player is using. |
Transform PlayerTransform { get; } | Root transform of the player. |
PlayerInput RightInput { get; } | Input for the right hand. |
Methods
| Member | What it is |
|---|---|
void OnDisconnectedFromPlatform() | Called when the player disconnects from the platform. |
Used in
Members of other types that take, return or hold a IPlatformPlayer:
AutoCamDeviceController.CreateInterface, AutoCamDeviceLifecycle.AutoCamDeviceLifecycle, ControllerInput.CalculateAndSetVelocities, DeviceLifecycle.DeviceLifecycle, DeviceLifecycle.OnPlatformPlayerSet, DeviceLifecycle.Player, DeviceLifecycle.SetDevicePlayer, FlyCamDeviceController.CreateInterface, FlyCamDeviceLifecycle.FlyCamDeviceLifecycle, IDeviceLifecycle.Player, IDeviceLifecycle.SetDevicePlayer, IXrDeviceSdkController.CreateInterface, IXrDeviceSdkController.SetDevicePlayer, IXrDeviceSdkController.StartDevice, OpenXRDeviceController.CreateInterface, OpenXRDeviceLifecycle.OpenXRDeviceLifecycle, PlatformDriver.SetupPlatform, PlatformDriver.StartPlatform, PlatformDriver.StartPlatformCoroutine, PlayerInput.InitializeForPlayer, PlayerInput.Player, SteamVRDeviceController.CreateInterface, SteamVRDeviceLifecycle.OnPlatformPlayerSet, SteamVRDeviceLifecycle.SteamVRDeviceLifecycle, VirtualRealityDeviceLifecycle.VirtualRealityDeviceLifecycle, XrDeviceSdkController.CreateInterface, XrDeviceSdkController.SetDevicePlayer, XrDeviceSdkController.StartDevice.