Skip to main content

CharacterComponentHelper<T>

An abstract class in Root.Township, Alta.Character.

Base for editor helper scripts that sit next to a CharacterComponentController of type T.

Constructors​

MemberWhat it is
protected CharacterComponentHelper()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private T componentControllerCached T component on the same object, filled on first use of ComponentController.

Properties​

MemberWhat it is
protected T ComponentController { get; }The T component on the same object, found on first use.

Methods​

MemberWhat it is
protected abstract void OnValidate()Editor validation hook each helper must implement.