Selector UGUI

Scripting with the SelectorUGUI class.

The SelectorUGUI class works as the visual representation of the selected selectable for Inventool's uGUI support.

Fields & Properties

Name
Description
Type
Access

canvas

The root canvas.

Canvas

public

rectTransform

The RectTransform of the graphic.

RectTransform

public

animator

The graphic animator component.

Animator

public

Set Active

The SetActive method hides or shows the selector graphic. This accepts a bool parameter—if true, the selector will be visible. Otherwise, it will be hidden.

mySelector.SetActive(true);

Locking

Lock

Plays the locked animation. The animator component must have an animation named 'Locked'.

mySelector.Lock();

Unlock

Plays the unlocked animation. The animator component must have an animation named 'Unlocked'.

mySelector.Unlock();

Last updated