From 75413e0e2cff42a85b73b33e17e0bb6344ecc8f6 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Wed, 12 Aug 2020 02:09:03 +0900 Subject: [PATCH] fix: An exception in the OnSceneGUI caused the scale of the transformation to change unintentionally --- Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs b/Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs index f343b3b..9691892 100644 --- a/Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs +++ b/Packages/UIParticle/Scripts/Editor/UIParticleEditor.cs @@ -282,8 +282,14 @@ void OnSceneGUI() trans.localScale = Vector3.Scale(localScale, x.canvas.rootCanvas.transform.localScale * x.scale); }); - foreach (var ui in _shapeModuleUIs) - ui.OnSceneViewGUI(); + try + { + foreach (var ui in _shapeModuleUIs) + ui.OnSceneViewGUI(); + } + catch + { + } postAction(); ShapeModuleUI.s_GizmoColor.m_Color = origin;