C# Class RedBlueGames.MulliganRenamer.EditorCoroutineUtility

ファイルを表示 Open project: redbluegames/unity-mulligan-renamer Class Usage Examples

Public Methods

Method Description
StartBackgroundTask ( IEnumerator update, Action onEnd = null ) : void

Starts a Coroutine using Unity Editor's update loop. This is useful for EditorWindows which aren't MonoBehaviours and therefore can't use Coroutines. Utility function adapted from https://forum.unity.com/threads/using-unitywebrequest-in-editor-tools.397466/#post-4485181

Method Details

StartBackgroundTask() public static method

Starts a Coroutine using Unity Editor's update loop. This is useful for EditorWindows which aren't MonoBehaviours and therefore can't use Coroutines. Utility function adapted from https://forum.unity.com/threads/using-unitywebrequest-in-editor-tools.397466/#post-4485181
public static StartBackgroundTask ( IEnumerator update, Action onEnd = null ) : void
update IEnumerator
onEnd Action
return void