Unity上的MRTK电传图层选择



我正在Unity上试用带有Oculus Quest 2的Windows混合现实工具包。

当我改变游戏对象的图层掩码时,传送不起作用,它只在图层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;

层设置需要在ParabolicTeleportPointer预置上设置。您将在输入=>下的MRTK检查器中找到它;指针。

在序言中;ParabolicTeleportPointer";组成部分在那里你可以设置";有效层";以及";无效层";传送。

它非常隐蔽。在我发现之前,我也在git上打开了一个问题,有完全相同的问题

最新更新