Hello!
Basic Particle System, newly created. Added a Point light prefab in the “Lights”-Kategory.
- Simulating the effect in the editor shows it working. The particles generate light.
- At runtime, in game the lights from the Particle System don’t show.
What do i need to know to fix it?
Solution:
I had the parent object of the particle system, a first person weapon, set to a weapon layer in order to draw it above all else on a second camera.
The particle system was meant to be a muzzle flash effect for the gunfire. So the particles had to appear on the weapon layer, otherwise, they would disappear in walls if the player comes to close.
The flash, that brightens the environment when shooting needs to be on the default layer, so i had to create a second particle system that only does the lights. I also moved the instance that is made to flash more within the players hitbox. If its not on the weapon layer, it may otherwise clip in walls, or in this case: in front of walls, there muzzle but no flashes.
1 Like