SteamVR 检测手柄是否连接 (代码)

Valve.VR.InteractionSystem.Player vrPlayer = null
 vrPlayer = GameObject.Find("Player").GetComponent<Valve.VR.InteractionSystem.Player>();

if(vrPlayer.rightHand.isActive)

 if (vrPlayer.leftHand.isActive)

 

posted @ 2020-07-23 13:32  D个人笔记  阅读(730)  评论(0编辑  收藏  举报