网格渲染对象被 UI 覆盖
Objects of mesh render are overlayed by UI
美好的一天。当用户选择它们时,我需要网格渲染(拼图)对象覆盖 UI。但我不知道如何做到这一点。我现在有这个:
就是这个问题。
我有 canvas 的配置:
拼图属于 Puzzle 层,所有 UI 组件属于 UI 层。
这是拼图元素的设置:
我推荐 this topic, 它非常清楚地解释了这个主题,我认为这是实现您想要的唯一方法:
requirement to do this is that the UI needs to be Screen Space - Camera not Screen Space - Overlay. Then you can create GameObjects with the model add a RectTransform and position them inside the hierarchy of your UI.
让我们知道这是否有帮助。
您可以使用排序图层
此 img 显示了粒子系统的示例。如果您需要在编辑器中的另一个对象上设置排序层——您需要一些额外的资产。您也可以通过编程更改任何 UI 元素的排序层。
美好的一天。当用户选择它们时,我需要网格渲染(拼图)对象覆盖 UI。但我不知道如何做到这一点。我现在有这个:
就是这个问题。
我有 canvas 的配置:
拼图属于 Puzzle 层,所有 UI 组件属于 UI 层。 这是拼图元素的设置:
我推荐 this topic, 它非常清楚地解释了这个主题,我认为这是实现您想要的唯一方法:
requirement to do this is that the UI needs to be Screen Space - Camera not Screen Space - Overlay. Then you can create GameObjects with the model add a RectTransform and position them inside the hierarchy of your UI.
让我们知道这是否有帮助。
您可以使用排序图层
此 img 显示了粒子系统的示例。如果您需要在编辑器中的另一个对象上设置排序层——您需要一些额外的资产。您也可以通过编程更改任何 UI 元素的排序层。