private void TouchPacControl()
{
if (SteamVR_Actions.default_ClickForwar.GetState(SteamVR_Input_Sources.RightHand))
{
transform.Translate(vrCameraTrans.forward * Time.deltaTime * speed, Space.Self);
}
if (SteamVR_Actions.default_ClickBack.GetState(SteamVR_Input_Sources.RightHand))
{
transform.Translate(vrCameraTrans.forward * -1 * Time.deltaTime * speed, Space.Self);
}
if (SteamVR_Actions.default_ClickLeft.GetState(SteamVR_Input_Sources.RightHand))
{
transform.Translate(vrCameraTrans.right * -1 * Time.deltaTime * speed, Space.Self);
}
if (SteamVR_Actions.default_ClickRight.GetState(SteamVR_Input_Sources.RightHand))
{
transform.Translate(vrCameraTrans.right * Time.deltaTime * speed, Space.Self);
}
}
我用的这个代码使用PouchPad来控制移动,再编辑器里都是很好 可以运行,但是打包出来之后这个功能就用不起了 按TouchPad没反应,这种打包后出现的问题老师遇到过吗