Repository navigation
|
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! |
Answered by
peter1745
Nov 7, 2023
Replies: 1 comment 2 replies
|
You first have to unload the AssemblyLoadContext by calling |
2 replies
Answer selected by
Ggjorven
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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