Class AvatarController
Manages avatar movement and camera positioning in TriLib samples. This class extends AbstractInputSystem to handle user input, allowing the character to move and rotate smoothly, as well as updating the camera’s position and orientation relative to the avatar.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: TriLibCore.Samples
Assembly: Assembly-CSharp.dll
Syntax
public class AvatarController : AbstractInputSystem
Fields
Animator
The Animator that handles animation playback and blending for this avatar.
Declaration
public Animator Animator
Field Value
Type | Description |
---|---|
Animator |
CharacterController
The CharacterController responsible for handling collisions and movement for the avatar.
Declaration
public CharacterController CharacterController
Field Value
Type | Description |
---|---|
CharacterController |
InnerAvatar
The root UnityEngine.GameObject representing the loaded avatar model. This can be replaced at runtime if a new avatar is loaded.
Declaration
public GameObject InnerAvatar
Field Value
Type | Description |
---|---|
GameObject |
Properties
Instance
A singleton reference to the active AvatarController in the scene. Set in TriLibCore.Samples.AvatarController.Awake() to ensure only one active instance is present.
Declaration
public static AvatarController Instance { get; }
Property Value
Type | Description |
---|---|
AvatarController |