|
@@ -409,7 +409,7 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
|
|
|
#region 设置功能
|
|
|
-
|
|
|
+ public bool needSavePosRotScale = true;
|
|
|
public void OnEditorBtnValueChanged(bool ison)
|
|
|
{
|
|
|
m_EditorCanvas.gameObject.SetActive(ison);
|
|
@@ -422,7 +422,11 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
|
|
|
if (ison)
|
|
|
{
|
|
|
- GetPosRotScale();
|
|
|
+ if (needSavePosRotScale)
|
|
|
+ {
|
|
|
+ GetPosRotScale();
|
|
|
+ needSavePosRotScale = false;
|
|
|
+ }
|
|
|
m_EditorCanvas.position = OpenXRCamera.Instance.head.position + Player.transform.forward + new Vector3(0, 0.5f, 0);
|
|
|
m_EditorCanvas.eulerAngles = new Vector3(0, OpenXRCamera.Instance.head.eulerAngles.y, 0);
|
|
|
|