Add support for binary modules with native-code only

This commit is contained in:
Wojtek Figat
2021-02-25 13:01:15 +01:00
parent 3da6f9186c
commit b193a7abc4
21 changed files with 123 additions and 27 deletions

View File

@@ -524,7 +524,7 @@ bool ScriptsBuilderService::Init()
_isInited = true;
// Link for Editor assembly unload event to clear cached Internal_OnCompilationEnd to prevent errors
auto editorAssembly = GetBinaryModuleFlaxEngine()->Assembly;
auto editorAssembly = ((NativeBinaryModule*)GetBinaryModuleFlaxEngine())->Assembly;
editorAssembly->Unloading.Bind(onEditorAssemblyUnloading);
// Listen to scripts reloading events and forward them to c#