- Install package from Github to project
- Open project
- create any UI.Selectabe (Button, Toggle, Slider, Scrollbar, or custom)
- Configure any Transition to it (Colors, Sprite Swap, Animator)
- Select this object in Hierarchy-window
- Open Scene-window
- find UI Selectable Overlay
- press any toggle in it
- Result: Selectable will force Transition to selected state
Example:
- single-file script
- dockable overlay
- hides if no Selectable in selection
- not change any Serialized (saved) values, only temporal
- preview all built-in animations: color, sprite swap, animation,
- preview Custom animations based on UI.Selectable.DoStateTransition
- Tested witn Unity 6, Unity 2022
- Button
- Toggle (Include isOn graphic)
- Slider
- Scrollbar
- Any custom Selectable, animated through UI.Selectable.DoStateTransition()
- Overlay hide if no Selectables in Selection
- Selectable (and it's prefab or scene) is marked dirty when switching (or forcing) states
Overlay has different toggles, that force specific Selectable state
- If no toggles enabled in overlay, Selectable component work as is
- if any toggle is pressed then state of selected Selectables is forced
Next toggles work with any Selectable .only one toggle can be active at once
- Normal (interactive, not selected, no pointer upon, no pointer pressed )
- Highlighted (interactive, pointer upon, no pointer pressed )
- Pressed (interactive, pointer pressed )
- Selected ((interactive, selected)
- Disabled (not interactive)
Work with UI.Toggle only , can be active independently: 6. Inverted - If enabled, checkmark graphic hide with isOn = true and vice versa
Overlay can display in next modes:
- Panel
- Horizontal toolbar
- Vertical
- Collapsed
Mode can be switched by docking Overlay to Scene window sidebars, or by overlay -> right mouse click -> mode







