You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
Merge pull request #289 from wmltogether/fix-deserialize-crash
Fix Editor sometimes crashes when entering Play Mode
This commit is contained in:
@@ -378,7 +378,7 @@ namespace Coffee.UIExtensions
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
EditorApplication.delayCall += () =>
|
EditorApplication.delayCall += () =>
|
||||||
{
|
{
|
||||||
if (!this || !gameObject || !transform) return;
|
if (!this || !gameObject || !transform || Application.isPlaying) return;
|
||||||
transform.localScale = Vector3.one;
|
transform.localScale = Vector3.one;
|
||||||
m_ResetScaleOnEnable = false;
|
m_ResetScaleOnEnable = false;
|
||||||
EditorUtility.SetDirty(this);
|
EditorUtility.SetDirty(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user