CharacterLocalityController
A class in Root.Township, Alta.Character.
The player character's locality controller: when a player is marked local or remote it picks the head transform and wires the head target, body, voice chat and ghost hands to it.
- Listed in Players and characters
- Inherits or implements
PlayerControllerLocalityController
Constructors
| Member | What it is |
|---|---|
CharacterLocalityController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private BodyController bodyController | The body controller whose Head is set to the chosen head. |
private NetworkTransform headNetworkTransform | Network transform for the head. Not used in this class's code. |
private Transform headTarget | Transform re-parented under the chosen head. |
private Transform localHead | Head object activated when the character is the local player. |
private Transform remoteHead | Head used by default (remote players). |
private LerpFollow voiceChatFollow | Follower that keeps the voice chat source on the head. |
Properties
| Member | What it is |
|---|---|
Transform Head { get; set; } | The head transform in use. Set to the remote head in Awake; the head target, body and voice chat follow it. |
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a CharacterLocalityController: