【发布时间】:2022-01-19 20:17:36
【问题描述】:
我正在使用手部跟踪在 Unity 上尝试 Windows Mixed Reality Toolkit 和 Oculus Quest 2。
当我更改游戏对象的图层蒙版时,传送不起作用,它只在第 0 层:默认值上起作用。
我搜索了几个小时,把所有的传送脚本都变红了,我找到了变量,但是当我改变它时什么也没发生。
这里是我找到的一段代码:
/// <summary>
/// Teleport logic will only work with TeleportPoint components that exist in the layers specified by this mask.
/// </summary>
[Tooltip("Teleport logic will only work with TeleportPoint components that exist in the layers specified by this mask.")]
public LayerMask TeleportLayerMask;
【问题讨论】:
标签: mrtk