Skip to main content

CharacterInfo

A class in Root.Township, the global namespace.

Shortcuts to a player's controller, head, hands and interactors. Each PlayerController makes one as Info.

Constructors​

MemberWhat it is
CharacterInfo(PlayerController controller)Creates a CharacterInfo from controller.

Properties​

MemberWhat it is
PlayerController Controller { get; }The player controller this describes.
Transform Head { get; }The head transform.
bool IsLocal { get; }True for the local player.
Controller LeftController { get; private set; }The left hand controller. Set by Initialize.
Interactor LeftInteractor { get; private set; }The left hand interactor. Set by Initialize.
Player Player { get; }The network player.
Controller RightController { get; private set; }The right hand controller. Set by Initialize.
Interactor RightInteractor { get; private set; }The right hand interactor. Set by Initialize.

Methods​

MemberWhat it is
void Initialize()Caches the left and right controllers and interactors.

Used in​

Members of other types that take, return or hold a CharacterInfo: