Skip to main content

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.

Properties​

MemberWhat 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​

MemberWhat 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: