For more detail this asset from the Unity Asset Store: Click Here
This is a paid asset, but now you can download Fish Flock for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
Fish Flock v1.24
“If possible, please buy the package to support the developer”
Fish Flock is an easy-to-use asset that manage a shoal of fish. The fishes move in flock and keep themselves as a group and also avoiding to collide with each other as they swim.
Notes:
– The asset only supports Unity’s built-in renderer currently, it doesn’t support any of the new rendering pipelines.
– For MacOS users, the asset will need to use the Metal renderer to use Compute Shaders otherwise you can’t use the GPU computation mode.
Features:
– Follow random generated points or a specific target.
– Instancing or prefab instantiation for the fishes
– Process the fishes through a Compute Shader (GPU) or in the CPU – Collision Avoidance against unity built-in colliders.
– Acceleration, speed, force, turn speed, transform scale and neighbour distance customization through inspector.
– Includes one simple shader that simulates the swimming movement of a fish.
– Multiple flocking groups on a scene.