コード例 #1
0
        private void FinalizePlugin()
        {
            _plugin?.Dispose();
            _plugin = null;

#if DYNAMIC_DLL_LOAD
            _dllManager?.Dispose();
            _dllManager = null;
#endif
        }
コード例 #2
0
        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
        }