UIButtonToggleObjects#
- NAMESPACE:
UnityUtils.ScriptUtils.UI
Usage#
Add a ‘UIButtonSpawnParticles’ Script to a UI button it will toggle objects on hover, exit, or click depending on the particle systems prefabs you added. Toggling the object will flip its active state, so if the object is disabled, it will become enabled and vice versa.
Functions#
- UnityUtils.ScriptUtils.UI.UIButtonToggleObjects : MonoBehaviour , IPointerEnterHandler , IPointerExitHandler , IPointerClickHandler
Public Members
- GameObject[] hoverToggleObjects
Will toggle all objects’s active state in this array on hover.
- GameObject[] exitToggleObjects
Will toggle all objects’s active state in this array on hover exit.
- GameObject[] clickToggleObjects
Will toggle all objects’s active state in this array on click.