世界空间画布中的遮罩-Gameobject渲染器也充当遮罩 [英] Masking in World Space canvas - Gameobject renderers act as mask too

查看:105
本文介绍了世界空间画布中的遮罩-Gameobject渲染器也充当遮罩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是在世界空间画布上创建Scroll Rect,但是每当我遮盖内容时,一切都会消失.我在覆盖画布上进行了测试,以查看是否正确设置了它.

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.

我了解到,非UI游戏对象渲染器也被用作遮罩,因此,如果世界空间中正在渲染某些东西,它将遮盖Scroll Rect Content.

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?!

推荐答案

不说这是一个答案,但是将主摄影机从延迟渲染"更改为前进"将解决此问题.

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

这篇关于世界空间画布中的遮罩-Gameobject渲染器也充当遮罩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆