We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a1fef4 + b80c3e6 commit 86de8b6Copy full SHA for 86de8b6
Scripts/UIParticle.cs
@@ -378,7 +378,7 @@ void ISerializationCallbackReceiver.OnAfterDeserialize()
378
#if UNITY_EDITOR
379
EditorApplication.delayCall += () =>
380
{
381
- if (!this || !gameObject || !transform) return;
+ if (!this || !gameObject || !transform || Application.isPlaying) return;
382
transform.localScale = Vector3.one;
383
m_ResetScaleOnEnable = false;
384
EditorUtility.SetDirty(this);
0 commit comments