UI.GetAnimFocus
static float GetAnimFocus(IdHash id, BtnState focusState, BtnState activationState)
This resolves a UI element with an ID and its current states into a nicely animated focus value.
IdHash id | The hierarchical id of the UI element we’re checking the focus of, this can be created with UI.StackHash . |
BtnState focusState | The current focus state of the UI element. |
BtnState activationState | The current activation status of the UI element. |
RETURNS: float | A focus value in the realm of 0-1, where 0 is unfocused, and 1 is active. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!