static LiveRecompileDisablerUnityThreadChecker()
        {
            unityThread = Thread.CurrentThread;

#if LOG_LRD
            LiveRecompileDisablerLogger.LogStaticCtor(typeof(LiveRecompileDisablerUnityThreadChecker));
#endif
        }
Exemple #2
0
#pragma warning restore 414

        static LiveRecompileDisabler()
        {
#if LOG_LRD
            LiveRecompileDisablerLogger.LogStaticCtor(typeof(LiveRecompileDisabler));
#endif

            instance = new LiveRecompileDisabler();
        }
        static LiveRecompileDisablerManualReloadTracker()
        {
#if LOG_LRD
            LiveRecompileDisablerLogger.LogStaticCtor(typeof(LiveRecompileDisablerManualReloadTracker));
#endif

            if (globalEventHandlerFieldInfo == null)
            {
                LiveRecompileDisablerLogger.LogError("Could not bind globalEventHandler method of EditorApplication");
                return;
            }

            var value = (EditorApplication.CallbackFunction)globalEventHandlerFieldInfo.GetValue(null);
            value += OnEditorApplicationGlobalEvent;
            globalEventHandlerFieldInfo.SetValue(null, value);
        }