- Home /
Render layers differing between Editor and Build
I am making a first-person shooter and I am using the tactic where you use two cameras, one for everything but your gun and one for vice-versa. But when I build the gun is gone, If I switch the layers settings between the two cameras I can see my gun in the build but not in the editor.
I am really at a loss on what is going on
Answer by AvienJ · Apr 03, 2021 at 03:59 AM
Changing the roles of the cameras(weapons, everything else) back and forth, saving and export. Try restarting Unity. With some luck, You can get it to work. There really is no easy answer to this, this is a unity glitch.
Answer by bestknighter · Apr 03, 2021 at 03:34 AM
Hey AvienJ. I had the same issue in a somewhat similar context. Have you solved it? If so, how did you do it? I made a forum post trying to get help on this.
Your answer
Follow this Question
Related Questions
Materials breaking in built project (but not in editor play mode) 0 Answers
Shader does not display properly in game/editor view, but building it works. 0 Answers
Graphics.DrawTexture() not rendering on builded game (but it renders on Editor) 2 Answers
Distribute terrain in zones 3 Answers
Grass (terrain detail mesh) show in editor, not in build 3 Answers