I have a GUI Texture that dims the screen, however I want certain game objects to not be dimmed. I tried putting them in front of the GUI Texture, but it doesn't work. How can I do this?
\$\begingroup\$
\$\endgroup\$
3
-
\$\begingroup\$ If you want something in front of a GUITexture, you'll need to create a second Camera, disable its GUI Layer component, and change the camera's depth so that it renders on top. \$\endgroup\$Chris McFarland– Chris McFarland2016-01-23 23:57:44 +00:00Commented Jan 23, 2016 at 23:57
-
\$\begingroup\$ I did that, then I tried bringing the game object behind the main camera, but in front of the depth-only camera, but the object wasn't appearing. And if I tried changing the depths, then the GUI texture would disappear. \$\endgroup\$Milen Pivchev– Milen Pivchev2016-01-24 00:11:25 +00:00Commented Jan 24, 2016 at 0:11
-
\$\begingroup\$ Make second camera skybox to don't clear :) \$\endgroup\$Hamza Hasan– Hamza Hasan2016-01-24 07:02:33 +00:00Commented Jan 24, 2016 at 7:02
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
Apparently the GUI texture hides everything that is not GUI, so I removed it altogether and put a semi-transparent black plane. Problem solved.