Unity如何更改画布的渲染顺序 [英] Unity How to change the Rendering Order of A canvas

查看:830
本文介绍了Unity如何更改画布的渲染顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用unity 5.3,并且试图更改两个重叠的跨平台控件的渲染顺序,每个控件都驻留在自己的画布中.

I'm using unity 5.3 and I'm trying to change the Rendering Order of two overlayed cross platform controls which each reside in their own canvas.

在以前的版本中,您可以使用

In previous versions you could bring the window into focus using

GUI.FocusWindow(0);

但是,这不适用于新系统. 我也尝试过在编辑器窗口中修改顺序,但没有执行任何操作.

However this does not work with the new system. I've also tried modifying the order in the editor window which has done nothing.

有人知道我如何将控件移到另一个控件的上方吗?

Does anyone know how I can move a control to be on top of the other?

推荐答案

进行了一些研究之后,我发现了更改画布渲染顺序"的正确方法.画布中有一个用于排序顺序"的属性,它实际上是渲染顺序.

After doing some research I found the proper way to change the Canvas Rendering Order. There is a property in the Canvas for the Sort Order, which is really the render order.

.

请注意,要放在顶部的控件应该比位于底部的控件具有更大的顺序.

Just as a note remember the controls you want to be on top should have a larger order than the control on bottom.

这篇关于Unity如何更改画布的渲染顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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