Fix resolving managed scripts references in Editor

This commit is contained in:
2023-05-11 22:10:26 +03:00
parent 4e78b49cac
commit cbe07b842f
2 changed files with 26 additions and 12 deletions

View File

@@ -908,12 +908,7 @@ namespace FlaxEngine.Interop
while (unloading)
System.Threading.Thread.Sleep(1);
#if FLAX_EDITOR
var isCollectible = true;
#else
var isCollectible = false;
#endif
scriptingAssemblyLoadContext = new AssemblyLoadContext("Flax", isCollectible);
InitScriptingAssemblyLoadContext();
DelegateHelpers.InitMethods();
}