完善VR适配

This commit is contained in:
shenjianxing 2025-04-07 10:30:35 +08:00
parent 0332229981
commit da52d47a20
2 changed files with 5 additions and 4 deletions

View File

@ -132,11 +132,11 @@ namespace QFramework
} }
#if VR public virtual void Update()
private void Update()
{ {
#if VR
transform.localEulerAngles = Vector3.zero; transform.localEulerAngles = Vector3.zero;
}
#endif #endif
}
} }
} }

View File

@ -45,8 +45,9 @@ namespace QFramework.Example
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject); TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
} }
private void Update() public override void Update()
{ {
base.Update();
if (isRun) if (isRun)
{ {
object[] objects = new object[mData.values.Count]; object[] objects = new object[mData.values.Count];