public static void ResetAllStatic()
 {
     RuntimeInspector.ResetStatic();
     NavigationCamera.ResetStatic();
     GUIChangeBool.ResetStatic();
     DrawEnum.ResetStatic();
     CullGroup.ResetStatic();
     HtmlDebug.ResetStatic();
 }
Exemple #2
0
 void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
     if (!isQuitting)
     {
         CloseLog("OnDestroy");
     }
 }
Exemple #3
0
 void CheckThread(int threadId)
 {
     if (threadId == -1)
     {
         threadId = HtmlDebug.GetThreadId();
     }
     if (threadId != -1 && threadId != HtmlDebug.mainThreadId)
     {
         threadString = " [Thread " + threadId + "]";
     }
 }
Exemple #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);
        }