- Home /
Question by
Boyaxchyan · May 04, 2019 at 07:23 PM ·
prefab3d modelsmodels
Object is invisible when there is another object behind
For some reason this happens. How can this be fixed? I also have other objects that don't show up until I am really close to them, but they still have this type of behavior.
screen-shot-2019-05-04-at-111902-pm.png
(474.4 kB)
Comment
Best Answer
Answer by Magso · May 04, 2019 at 08:55 PM
This may be because the walls have a transparent shader and they are being rendered after the lights because of the renderQueue. You can alter it by using
GetComponent<Renderer>().material.renderQueue = 0 - 5000