ObjectFlow flows the set of objects it creates towards the specified target.
This package is not dependent on any additional libraries.
- Copy
https://github.com/Gnarly-Games/ObjectFlow.git
- Open the package manager by following
Window -> Package Manager
- Click Add package from git URL and paste the URL.
Always use the ObjectFlow in a seperate canvas.
UI elements are not designed to be created hundreds at a time.
Creating frequently updated objects in a separate canvas will prevent other UI elements from getting dirty.
Canvas can also be a subcanvas of the canvas you are currently using.
Read this article from Unity for more information.
- Create a child canvas within your canvas.
- Create a GameObject within the child canvas.
- Add
ObjectFlow
script to theGameObject
. - Define projectile amount and speed.
- Define explosion radius and speed. Tweak the Animation Curves of the explosion.
- Assign the target
GameObject
and tweak the Animation Curves of the flow path. - Invoke the
ObjectFlow.Flow()
method.
If you have trouble using the package, try to follow the steps by watching the demo video.
ObjectFlow
is offered under the Apache 2 license.