From 2ec374833614d64406e7c3207ca5fe234a749dcb Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 2 Feb 2024 16:51:27 +0900 Subject: [PATCH] fix: particle size too small due to auto scaling close #295 --- Packages/src/Runtime/UIParticle.cs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Packages/src/Runtime/UIParticle.cs b/Packages/src/Runtime/UIParticle.cs index e88b106..a43c260 100644 --- a/Packages/src/Runtime/UIParticle.cs +++ b/Packages/src/Runtime/UIParticle.cs @@ -100,9 +100,6 @@ namespace Coffee.UIExtensions "UIParticle: UIParticle.scale will be adjusted.")] private AutoScalingMode m_AutoScalingMode = AutoScalingMode.Transform; - [SerializeField] - private bool m_ResetScaleOnEnable; - private readonly List _renderers = new List(); private int _groupId; private Camera _orthoCamera; @@ -297,13 +294,6 @@ namespace Coffee.UIExtensions } base.OnEnable(); - - // Reset scale for upgrade. - if (m_ResetScaleOnEnable) - { - m_ResetScaleOnEnable = false; - transform.localScale = Vector3.one; - } } /// @@ -345,17 +335,6 @@ namespace Coffee.UIExtensions m_IgnoreCanvasScaler = false; m_AutoScaling = false; m_AutoScalingMode = AutoScalingMode.Transform; - m_ResetScaleOnEnable = true; - -#if UNITY_EDITOR - EditorApplication.delayCall += () => - { - if (!this || !gameObject || !transform || Application.isPlaying) return; - transform.localScale = Vector3.one; - m_ResetScaleOnEnable = false; - EditorUtility.SetDirty(this); - }; -#endif } if (m_AbsoluteMode)