File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ public class EditorAssetGenerator
11
11
12
12
static EditorAssetGenerator ( )
13
13
{
14
- if ( ! Resources . Load < AvatarLoaderSettings > ( AvatarLoaderSettings . SETTINGS_PATH ) )
15
- {
16
- CreateSettingsAssets ( ) ;
17
- }
14
+ EditorApplication . delayCall += CreateSettingsAssets ;
15
+ }
16
+
17
+ ~ EditorAssetGenerator ( )
18
+ {
19
+ EditorApplication . delayCall -= CreateSettingsAssets ;
18
20
}
19
21
20
22
private static void CreateSettingsAssets ( )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ static ModuleInstaller()
46
46
if ( ! modulesInstalled )
47
47
{
48
48
InstallModules ( ) ;
49
- CoreSettingsHandler . CreateCoreSettings ( ) ;
49
+ EditorApplication . delayCall += DelayCreateCoreSettings ;
50
50
}
51
51
52
52
#if ! GLTFAST
@@ -56,7 +56,13 @@ static ModuleInstaller()
56
56
AddScriptingDefineSymbolToAllBuildTargetGroups ( READY_PLAYER_ME_SYMBOL ) ;
57
57
}
58
58
#endif
59
-
59
+
60
+ }
61
+
62
+ private static void DelayCreateCoreSettings ( )
63
+ {
64
+ CoreSettingsHandler . CreateCoreSettings ( ) ;
65
+ EditorApplication . delayCall -= DelayCreateCoreSettings ;
60
66
}
61
67
62
68
/// <summary>
You can’t perform that action at this time.
0 commit comments