-
How do I reload a assembly? I'm creating a simple game engine and want to use C# scripting and since I knew this project existed I decided to use Coral. In my script class I load the dll using this line: The 's_Context' is a global Coral::AssemblyLoadContext, so all script's can share it.
What is the proper way of reloading in Coral? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You first have to unload the AssemblyLoadContext by calling |
Beta Was this translation helpful? Give feedback.
You first have to unload the AssemblyLoadContext by calling
HostInstance::UnloadAssemblyLoadContext(s_Context)
, and then you have to recreate the assembly load context and load all the assemblies again