public static void ResetAllStatic()
 {
     RuntimeInspector.ResetStatic();
     NavigationCamera.ResetStatic();
     GUIChangeBool.ResetStatic();
     DrawEnum.ResetStatic();
     CullGroup.ResetStatic();
     HtmlDebug.ResetStatic();
 }
Beispiel #2
0
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
     if (!isQuitting)
     {
         CloseLog("OnDestroy");
     }
 }
Beispiel #3
0
 void CheckThread(int threadId)
 {
     if (threadId == -1)
     {
         threadId = HtmlDebug.GetThreadId();
     }
     if (threadId != -1 && threadId != HtmlDebug.mainThreadId)
     {
         threadString = " [Thread " + threadId + "]";
     }
 }
Beispiel #4
0
        void Awake()
        {
            if (instance != null)
            {
                Debug.LogError("You have more than 1 HtmlDebug GameObject, make sure to only use 1");
                return;
            }

            instance = this;

            logCallBack = new WaitCallback(WriteLogs);

            if (!openLogManually)
            {
                OpenLog(Helper.GetConsoleLogPath());
            }

            // DontDestroyOnLoad(gameObject);
        }