
2、给XR Rig添加【Teleportation Provider】组件,设置传送对象

3、选中地面传送区域,将XR Rig的【Teleportation Provider】组件赋值给地面传送区域的【Teleportation Area】组件的“Teleportation Provider”属性

4、选中XR Rig,添加【Locomotion System】组件

5、将【Locomotion System】组件赋值给【Teleportation Provider】组件的“System”属性

6、将【XR Rig】组件赋值给【Locomotion System】组件的“XR Rig”属性

7、射线传送功能已经设置完成,在场景中使用手柄板机键【Grip键】触发传送。
如果想修改成使用Trigger键触发,需要修改手柄的"Select Usage"为Trigger

网友评论