- Home /
Layer not rendering
Hi, I am having an issue with an FX in unity. My scene has 2 camera, 1 ortho and 1 perspective. I have an FX with his own layer that only the perspective camera can see. And when I start the game, my main camera (ortho) see my FX and my other camera (perspective) does not. If I manually change the layer of my FX and its children during play mode, then my second camera see it properly.
I tried to add a script that force the layer of all childrens in my Fx gameobject, it worked at first, but is not working anymore. I am working under unity 5.3. Is that a known issue? or maybe I am doing something wrong.
And before you ask, yes my FX gameobject and all his children are on the correct layer when I am in editor.
If I call my script to overwrite the layer multiple time (like in the update), after a while it start working. So it seems like the editor is showing me my gameobject is in layer 11 but it is not. Or something else is overwriting it.
Your answer
Follow this Question
Related Questions
Render a Layer as Pure Black 0 Answers
Render Mouse Over Everything 1 Answer
With multiples cameras, How to change what is rendered without using layers? 2 Answers
HDRP Camera weapon layer 1 Answer
Problem with raycast aim, need help ignoring layers/tags and pointing at the end of the ray. 2 Answers