private void FinalizePlugin() { _plugin?.Dispose(); _plugin = null; #if DYNAMIC_DLL_LOAD _dllManager?.Dispose(); _dllManager = null; #endif }
private void InitializePlugin() { FinalizePlugin(); #if DYNAMIC_DLL_LOAD _dllManager = new DllManager("Assets/HDROutput/Plugins/x86_64/HDROutputPlugin.dll"); _plugin = new HDROutputPlugin( _dllManager.GetDelegate <FnCreateHDROutputPluginInstance>("CreateHDROutputPluginInstance"), DllManager.GetProxyUnityRenderingEvent()); #else _plugin = new HDROutputPlugin(CreateHDROutputPluginInstance, GetUnityRenderingEvent()); #endif }