PixelCrushers.UIUtility Class Reference

Static Public Member Functions

static void RequireEventSystem (string message=null)
 Ensures that the scene has an EventSystem.
 
static void SetEventSystemInChildren (Transform t, UnityEngine.EventSystems.EventSystem eventSystem)
 Sets the EventSystem to use for all IEventSystemUsers in a hierarchy.
 
static int GetAnimatorNameHash (AnimatorStateInfo animatorStateInfo)
 
static void Select (UnityEngine.UI.Selectable selectable, bool allowStealFocus=true, UnityEngine.EventSystems.EventSystem eventSystem=null)
 Selects a Selectable UI element and visually shows it as selected.
 
static Font GetDefaultFont ()
 

Member Function Documentation

◆ GetAnimatorNameHash()

static int PixelCrushers.UIUtility.GetAnimatorNameHash ( AnimatorStateInfo  animatorStateInfo)
inlinestatic

◆ GetDefaultFont()

static Font PixelCrushers.UIUtility.GetDefaultFont ( )
inlinestatic

◆ RequireEventSystem()

static void PixelCrushers.UIUtility.RequireEventSystem ( string  message = null)
inlinestatic

Ensures that the scene has an EventSystem.

Parameters
messageIf needing to add an EventSystem, show this message.

◆ Select()

static void PixelCrushers.UIUtility.Select ( UnityEngine::UI::Selectable  selectable,
bool  allowStealFocus = true,
UnityEngine::EventSystems::EventSystem  eventSystem = null 
)
inlinestatic

Selects a Selectable UI element and visually shows it as selected.

Parameters
selectable
allowStealFocus

◆ SetEventSystemInChildren()

static void PixelCrushers.UIUtility.SetEventSystemInChildren ( Transform  t,
UnityEngine::EventSystems::EventSystem  eventSystem 
)
inlinestatic

Sets the EventSystem to use for all IEventSystemUsers in a hierarchy.


The documentation for this class was generated from the following file: