- Home /
I want to do something like the Smash Brothers smash effect
When you kill someone in Smash Bros Ultimate, the whole screen turns red behind the two fighters: https://youtu.be/a46AHGDSch4?t=696
So I want to do something like this - I have a world with a terrain, and there are players standing on the terrain. I have a particle effect prefab that fills the screen kind of like the Smash thing, which I instantiate behind the players. So this successfully has the players render in front of the terrain.. but the terrain that is closer to the camera than the particle effect renders on TOP of the particle effect.
I've read about the 2 camera method, which would allow me to render the particle effect over everything(including the players). But how do I make the particle effect render on TOP of the terrain, but UNDER the players?
I believe you can keep two cameras, the first one rendering the players + particle effects, the other one rendering the terrain.
The thing is, the players are on the terrain, so their initially being rendered by the normal game camera.
So I guess I create a new camera, put it in the exact same spot as the first camera, and switch the players to be rendered by the 2nd camera, and then after the effect is done, switch the players back to the 1st camera?
Answer by johnnyjacques · Mar 29, 2021 at 02:11 PM
Late replay, you may have a solution by now, but posting here for others... you should be able to use sorting layers, or if you run into issues you can always 3 cameras. Main camera switches to a player-only camera and also turns on an effects camera ( each with different depths ).
Your answer
![](https://koobas.hobune.stream/wayback/20220612193052im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rendering Order 4 Answers
Why does this cube occlude this sphere? (with pictures) 1 Answer
Sprite behind semi transparent mesh 0 Answers
Auto-destroying particle system 11 Answers
Particles 'Pausing' and then resuming when back on screen 2 Answers