Merge pull request #289 from wmltogether/fix-deserialize-crash

Fix Editor sometimes crashes when entering Play Mode
pull/290/head
mob-sakai 2024-01-18 19:41:27 +09:00 committed by GitHub
commit 86de8b6e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ namespace Coffee.UIExtensions
#if UNITY_EDITOR
EditorApplication.delayCall += () =>
{
if (!this || !gameObject || !transform) return;
if (!this || !gameObject || !transform || Application.isPlaying) return;
transform.localScale = Vector3.one;
m_ResetScaleOnEnable = false;
EditorUtility.SetDirty(this);