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

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

if(vrPlayer.rightHand.isActive)

 if (vrPlayer.leftHand.isActive)

猜你喜欢

转载自www.cnblogs.com/DGJS/p/13365809.html