Class UITKAbilities
UI Toolkit abilities panel. Renders the character's abilities, known abilities, and known ability events as tabbed icon slots. Hovering shows the entry tooltip; left-clicking a known ability picks it up onto the shared drag object so it can be assigned to a hotkey.
public class UITKAbilities : UITKCharacterControl
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourUITKAbilities
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)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.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Methods
AddAbility(Ability)
Adds an ability slot for a usable ability.
public void AddAbility(Ability ability)
Parameters
abilityAbilityThe ability to add.
AddKnownAbility(BaseAbilityTemplate)
Adds a slot for a known ability template.
public void AddKnownAbility(BaseAbilityTemplate template)
Parameters
templateBaseAbilityTemplateThe ability template to add.
AddKnownAbilityEvent(AbilityEvent)
Adds a slot for a known ability event.
public void AddKnownAbilityEvent(AbilityEvent abilityEvent)
Parameters
abilityEventAbilityEventThe ability event to add.
ClearAllSlots()
Clears all ability, known ability, and known ability event slots.
public void ClearAllSlots()
OnDestroying()
Unsubscribes from events and clears all slots when the control is destroyed.
public override void OnDestroying()
OnPostSetCharacter()
Subscribes to ability controller events after the character is set.
public override void OnPostSetCharacter()
OnPreSetCharacter()
Drops the outgoing character's subscriptions before a new character is applied.
public override void OnPreSetCharacter()
Remarks
UITKCharacterControl.OnAfterStarting calls Pre then Post on every tree rebuild so
the two cancel out. With Pre un-overridden the cancelling half did nothing and each
rebuild stacked another copy of all four handlers.
OnPreUnsetCharacter()
Unsubscribes from ability controller events and clears slots before the character is unset.
public override void OnPreUnsetCharacter()
OnQuitToLogin()
Clears all slots when quitting to login.
public override void OnQuitToLogin()
OnStarting()
Queries tab buttons and containers, wires up tab switching, and subscribes to lifecycle events.
public override void OnStarting()
RemoveAbility(long)
Removes the slot for an ability the character no longer knows.
public void RemoveAbility(long referenceID)
Parameters
referenceIDlongThe removed ability's reference ID.
SwitchTab(AbilityTabType)
Switches the visible ability tab.
public void SwitchTab(AbilityTabType tab)
Parameters
tabAbilityTabTypeThe tab to display.