Skip to content

Commit fcebd4a

Browse files
committed
fix: error message sometimes after importing assets
close #256
1 parent c7f39d0 commit fcebd4a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Packages/src/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ public static T instance
158158

159159
private void OnPlayModeStateChanged(PlayModeStateChange state)
160160
{
161+
if (!this) return;
162+
161163
switch (state)
162164
{
163165
case PlayModeStateChange.ExitingEditMode:

0 commit comments

Comments
 (0)