Example: You have an awesome spreading rainbow effect and you would like to integrate it with Magio to interact with other effects and spread it on the object smoothly.
Steps:
- Navigate to Arctibyte/Magio/Core/VFX/Graphs
- Open Mesh/Skinned Mesh/Mutable Renderer template Graph (“MutableRenderer” template: MutableRenderer can handle both mesh and skinned mesh, but you have to be a little more flexible with it.)
- Copy all the properties from there (Paint them + Ctrl+C)
- Paste the properties to your graph (Open your graph + click the window + Ctrl+V)
- Add Magio Mesh/Skinned Mesh/Mutable positioning block to your initialize context
- This can be also added to other contexts
- See templates for examples on how to use these blocks.
- Or you can use the positioning variables your own way. The Plantify effect graph has an example of how to use them with a VFX shader graph.
- Connect transform, spread, nullify and mesh to the positioning block
- (Optional) Connect VFX multiplier and Lifeline multiplier to spawn context
- (Optional) Connect External force to absolute force block in Update context
- Magio property documentation can be seen in Arctibyte/Magio/Core/VFX/Graphs/VFX_Property_Documentation.txt
- Test out your effect:
- Select your target game object which has been converted to magio object.
- Change Effect pack->Select effect prefab
- Drag your new effect to the effect prefab slot
- Go to VFX tab
- Press Preview VFX
- Your object should start emitting your VFX right from it’s surface!
- Depending on the use case you might need to do more fine tuning such as multipliers etc. In this case please read Property documentation to understand the variables.