Spawn Laser impacts efficiently
Hello everyone, I am a high school student and rather new to using VFX Graph in Unity. I have been creating a 3D space shooter game. I have created a laser and set up the scripts for shooting it. The problem I am facing is I spawn too many laser impact VFX that my editor and the GPU crashes. I have intel i3 processor with integrated intel HD Graphics 520.
My laser VFX effect consists of some 20-30 particles to show a spark and a forward decal that renders on the geometry. I am checking if the player has pressed the "F" key and if it has, I spawn a laser impact Visual effect each frame. Please suggest me a way to spawn these impacts so that it looks like laser impact and is less GPU expensive. Any help regarding this will be appreciated. Thanks in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613031718im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Opaque ("overwrite") Projector Shader for Decal Projection 1 Answer
What technique better to use to create a realistic fire? 1 Answer
Is it expensive to use gradient texture on sphere with particle additive soft to emulate fog? 0 Answers
Just Cause 3 Volumetric Explosions 1 Answer
No works vfx tests 0 Answers