您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
39 行
1.2 KiB
39 行
1.2 KiB
using System.Collections;
|
|
using UnityEditor;
|
|
using marijnz.EditorCoroutines;
|
|
|
|
namespace Unity.UIWidgets.Editor {
|
|
|
|
public static class UIWidgetsEditorCoroutineExtensions
|
|
{
|
|
public static EditorCoroutines.EditorCoroutine StartCoroutine(this EditorWindow thisRef, IEnumerator coroutine)
|
|
{
|
|
return EditorCoroutines.StartCoroutine(coroutine, thisRef);
|
|
}
|
|
|
|
public static EditorCoroutines.EditorCoroutine StartCoroutine(this EditorWindow thisRef, string methodName)
|
|
{
|
|
return EditorCoroutines.StartCoroutine(methodName, thisRef);
|
|
}
|
|
|
|
public static EditorCoroutines.EditorCoroutine StartCoroutine(this EditorWindow thisRef, string methodName, object value)
|
|
{
|
|
return EditorCoroutines.StartCoroutine(methodName, value, thisRef);
|
|
}
|
|
|
|
public static void StopCoroutine(this EditorWindow thisRef, IEnumerator coroutine)
|
|
{
|
|
EditorCoroutines.StopCoroutine(coroutine, thisRef);
|
|
}
|
|
|
|
public static void StopCoroutine(this EditorWindow thisRef, string methodName)
|
|
{
|
|
EditorCoroutines.StopCoroutine(methodName, thisRef);
|
|
}
|
|
|
|
public static void StopAllCoroutines(this EditorWindow thisRef)
|
|
{
|
|
EditorCoroutines.StopAllCoroutines(thisRef);
|
|
}
|
|
}
|
|
}
|