Add a Effect to the Effect Manager
✔
Last updated
Was this helpful?
✔
Last updated
Was this helpful?
Let's create a quick sample on how to add a new Effect to the Controller.
For example: We want to create a Ring of dust when the Jumps in place.
Select any character you want to add the Effect. In this Sample we will use the LD Tiger.
If the character does not have an component, then we add it:
Select the new Created Effect to show its properties:
On the Effect Field ... lets select one of the already made Prefabs.. "Dust Ring"
Now we need to call the Event when the Little Dragon Jump. Go to the Animator Controller of the Character and search for the Jump State Machine.
Select the First Starting Jump Animation of the Little Dragon and add a new EffectBehaviour
On the On Enter (Time = 0) Set a new Play Effect with the Value of 50.
And that should be it!
Now every time the Little Dragon Jumps it will leave a Ring dust Effect:
Add a new Effect to the , Rename it "Jump Dust" and give it an ID of 50
Set the Parameter to 4. This will Destroy the Instantiated Dust Ring After 4 Seconds.
On the Parent Group, Drag the Root Gameobject of your Character to the .
Set and to False, that way the Effect won't be child of the Parent Object and it will keep its original rotation instead of the Parent's rotation