Browse Source

994,关闭素材编辑按钮后,不还原

蓝色星空 1 year ago
parent
commit
59b269a72e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Assets/Scripts/UI/EdirPanel/UIEditorPanel.cs
  2. 1 1
      Assets/Scripts/UI/GameManager.cs

+ 1 - 1
Assets/Scripts/UI/EdirPanel/UIEditorPanel.cs

@@ -216,7 +216,7 @@ public class UIEditorPanel : AbstractController, EventObserver
 
         RevocationBtn.onClick.AddListener(() =>
         {
-            //GameManager.Instance.SetPosRotScale();
+            GameManager.Instance.SetPosRotScale();
             
             if (MaterialObj == null)
                 return;

+ 1 - 1
Assets/Scripts/UI/GameManager.cs

@@ -431,7 +431,7 @@ public class GameManager : MonoSingleton<GameManager>
         }
         else
         {
-            SetPosRotScale();// 设置所有物体位置旋转缩放
+            //SetPosRotScale();// 设置所有物体位置旋转缩放
             m_EditorCanvas.position = OpenXRCamera.Instance.head.position + new Vector3(0, 100, 0);
 
             if (SpoitIndex >= 0 && !IsTriggerExiting)