static void OnDomainReload() { _find?.Dispose(); _find = null; _initialized = false; }
static Interop.Find InitializeFind() { Interop.NDILib.Initialize(); _find = Interop.Find.Create(); SetFinalizer(); return(_find); }
static void OnDomainReload() { _find?.Dispose(); _find = null; _gameViewSend?.Dispose(); _gameViewSend = null; }
static void OnDomainReload() { _find?.Dispose(); _find = null; _gameViewSend?.Dispose(); _gameViewSend = null; Interop.NDILib.Destroy(); }
static void Setup() { if (_initialized) { return; } #if UNITY_EDITOR UnityEditor.AssemblyReloadEvents.beforeAssemblyReload += OnDomainReload; #endif _find = Interop.Find.Create(); _initialized = true; }