一、将unity 与visual studio 相关联
1.Edit->Preference->External tool 选择相应的版本
![](https://file.jishuzhan.net/article/1710159740362821633/699dd5925b91d9a1347505e30a245ff8.webp)
二、手柄遥控人物转向和人物移动
1.添加Locomotion System组件
选择XR Origin;
2.添加Continuous Move Provider(Action-based)组件
1>System:
2>Move Speed:注意速度过小会导致看起来没有移动
3>RightHandMoveAction(right loco move):个人采用右手柄实现移动
![](https://file.jishuzhan.net/article/1710159740362821633/381270d7ae8caf19169bf1490aac46ef.webp)
2.添加Continuous Turn Provider(Action-based)组件
1>System:
2>Turn Speed:注意旋转速度过小会导致看起来没有移动
3>RightHandMoveAction:个人采用右手柄实现旋转
![](https://file.jishuzhan.net/article/1710159740362821633/c001a0c3246ba29a8e0b52df3df72c21.webp)
至此,初步的移动功能就实现了