private CEditorApp() { m_lastUpdateTime = EditorApplication.timeSinceStartup; CTimerManager.ScheduleTimer(() => { CThreadUtils.InitOnMainThread(); // we need to make sure this call is done on the main thread CLog.Initialize(); // it's safe to initialize logging CEditorSceneKeyHandler.keyDownHandler += SceneKeyDownHandler; CEditorSceneKeyHandler.keyUpHandler += SceneUpDownHandler; }); }
internal void Add(CConsoleViewCellEntry entry) { if (CThreadUtils.IsUnityThread()) { Entries.Add(entry); Delegate.OnConsoleEntryAdded(this, ref entry); } else { CTimerManager.ScheduleTimer(() => { Add(entry); }); } }
static TestFixtureBase() { CThreadUtils.SetMainThread(); }