UIButtonSpawnParticles#
- NAMESPACE:
UnityUtils.ScriptUtils.UI
Usage#
Add a ‘UIButtonSpawnParticles’ Script to a UI button it will spawn particles on hover, exit, or click depending on the particle systems prefabs you added.
Tip
To use this script to spawn particles on UI, you will need to use this package: mob-sakai/ParticleEffectForUGUI on your particle system prefab.
Functions#
- UnityUtils.ScriptUtils.UI.UIButtonSpawnParticles : MonoBehaviour , IPointerEnterHandler , IPointerExitHandler , IPointerClickHandler
Public Members
- GameObject[] hoverParticlePrefabs
Will spawn all prefabs in this array on hover.
- GameObject[] exitParticlePrefabs
Will spawn all prefabs in this array on hover exit.
- GameObject[] clickParticlePrefabs
Will spawn all prefabs in this array on click.