简体   繁体   中英

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

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?! 在此处输入图片说明

并不是说这是一个答案,但是将主摄像机从“延迟渲染”更改为“前进”将解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM