I have made a VFX graph that spawns an orb made of particles. What is the smart way to spawn and move multiple orbs across a 2D surface? Right now I am spawning a prefab holding VFX through code and changing its position through transform manipulation. However, it feels like there must be a much better approach to what I am trying to achieve. Basically, I need multiple orbs to move around slowly on the wall…
Morning. They are always multiples solutions to achieve a task. Now, usually we try to use a solution that best suits our needs and constraints.
What you’re describing seems perfectly fine and gives you the advantage of having separate VFX instances that can be tweaked and/or randomized individually. Thanks to the VFX instancing feature, it should also be pretty performant.
Now, it is the best solution to what you’re trying to achieve is difficult to answer.
What are your constraints? Do you want some artistic control over the motion Path?
Does all the orbs all follow the same motion? Should they stick to the wall?
It would be nice that you better describe what your end goal is so that we can try to help you on what is the “best” approach.
Have a great day