Masking in World Space canvas - Gameobject renderers act as mask too

偶尔善良 提交于 2019-12-08 09:13:01

问题


My goal was to create a Scroll Rect on a worldspace canvas but whenever I would mask out the content everything vanished. I tested on an overlay canvas to see if I was setting it up correctly and I was.

What I learned was that non-UI gameobject renderers were being used as the mask too so if there was something being rendered in world space, it would mask the Scroll Rect Content.

The top image shows the mask disabled. The bottom shows the mask enabled.

Any ideas how I can have it ignore the worldspace objects?!


回答1:


Not saying this is an answer but changing the main camera from Deferred rendering to Forward will fix this.



来源:https://stackoverflow.com/questions/28348840/masking-in-world-space-canvas-gameobject-renderers-act-as-mask-too

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!