- Home /
How to add particle effects to citizens in a crowd?
I have a crowd using Easy population asset in unity. I want to add particle effects around all or random citizens in the crowd. It would be very helpful if you could guide me on how do to it... Thank you for taking your time...
Have a nice day :)
Answer by Artik2442 · Aug 11, 2020 at 10:53 AM
So I've been looking at some videos showing how to use the asset and I found the solution.
You have to modify the prefabs you are using for the crowd and add to it the particle system.
How to do it:
Double click on the asset you want to modify in Project view (in scene view, the prefab will appear, to quit the prefab view: click on the arrow at the top of the hierarchy).
Add the Particle system as a child of the prefab.
Do it on all the prefabs you are using for the crowd.
That should work!!!
Hope it helped!!!
Thank you for taking you time to look at the videos But i don't know how to make the prefab come in scene view.. I have the prefabs for the population at Resources -> EasyPopulation When i double click the prefab, the prefab is opening in the 3D viewer.... I am not sure how to attach the particle system as the child to prefab.... Please assist me
I unpacked the prefab, added the particle system and repacked the prefab... After that, I'm able to see the particle system for each prefab cloned...but not able to see the cloned character...
Ok, so you need to go to "Assets" and to find the assets you are using for the crowd. Open it by double click it (and it will appear in the 3D scene view. Then in the hierarchy, add the Particle System as a child of the gameObject, like this: 
$$anonymous$$ake sure to set the position of the particle system in the prefab correctly.
for unpacking and repacking the prefab, I don't what happened, try to reimport the asset and to modify as I said.
Thank you very much for everything, Had the problem both with the position and the prefab I unpacked. Thank You.
Your answer
Follow this Question
Related Questions
How many sounds can play all at once? 3 Answers
How To Limit A transform MOVEMENT in X axis 3 Answers
Freezing effect on camera 0 Answers
Is it possible to use a single function for OnRenderImage AND [ImageEffectOpaque]OnRenderImage? 0 Answers
How to do custom realtime audio effects (like Unity reverb)? 0 Answers