/// <summary> /// Initializes this module. /// </summary> public static void Initialize() { if (I != null) { return; } I = RenkoLibrary.CreateModule <UnityThread>(); MainThreadId = Thread.CurrentThread.ManagedThreadId; }
/// <summary> /// Executes the specified handler in main thread. /// </summary> public static object RunOnMainThread(UnityThread.ProcessHandler handler) { return(UnityThread.Dispatch(handler)); }