-
Notifications
You must be signed in to change notification settings - Fork 0
Particlepatch
Particlepatch is a ScriptableObject for VFX. It will pick a semi-random GameObject from the array. It can spawn attached to transforms or it can create a new object which is perfect for effects when objects get destroyed. It integrates well with UnityEvents making it easy to implement VFX.
Low effort system for implementing simple logic VFX.
Right click in your project window > Create > ThatAudio > Particlepatch
Open the ParticlePatch in the inspector and fill the ParitclePrefabs with all prefabs that you would possibly want to play in one occasion (for example, all your foot step variations of particles. To hook up your Particlepatch, make an UnityEvent on a script and UnityEvent.Invoke where you want to play the VFX. In the inspector, add a new invoke to the UnityEvent, drag in the ParticlePatch and select one of the Play functions that fits what you need.
For testing purposes, there is an Particlepatchtester that you can add to any object.