- Home /
Instantiated particles prefab has fewer particles
Hi there, I'm using Unity 5.6.2f1 and I have a particle system that shoots particles in a hemisphere/ring from the center point, kind of like an explosion. When I preview the particle system in the editor, it seems to shoot around 20 particles from the center as expected. If I run my game and I click and drag the prefab into the scene, the same happens which is great. IF however I instantiate that same prefab using the following code:
GameObject BlueExplosion = Instantiate(BluePrefab, GetHitPoint, Quaternion.identity) as GameObject;
Then for some reason it looks like there are roughly 5-10 particles that shoot from the center, instead of the full amount. Any idea what could be causing this? I compared the two instantiations of the same prefab, the one that I click and drag into the scene and the one that I instantiate with the code and as far as I can tell they're identical. Same position, same particle settings and so forth. It's the same prefab, just the method used on how to spawn it is different. Any idea what I'm doing wrong?
Thanks in advance!
can you share a screenshot of inspector showing particle system and emission tab
Well I guess you solved it lol. I increased my "Rate over Time" from under Emissions from 700 to 1500 and it now looks as it should. Thanks!
Answer by mondovila · Nov 06, 2017 at 04:11 PM
Nice. I had the same issue. Thanks for asking and glad you solved your problem. :D
Did you use the same solution or did something else work for you? I'm happy the solution I found worked out, but I'm wondering if that's the proper way to do it. Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220612142455im_/https://answers.unity.com/themes/thub/images/avi.jpg)