0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Editorでコルーチンを実行するツールを作ってみた【Unity】

Last updated at Posted at 2020-01-29

EditorCoroutines

using UnityEngine.Coroutines;

void Run()
{
    EditorCoroutines.StartCoroutine(YourCoroutine());
}

IEnumerator YourCoroutine()
{
    Debug.Log("Start Coroutine");
    yield return new WaitForSecondsRealtime(1.0f);
    Debug.Log("End Coroutine");
}

Getting started

Packages/manifest.jsonに以下の行を追加してください。

"com.tani-shi.unity-editor-coroutines": "https://github.com/tani-shi/unity-editor-coroutines.git#1.0.0"

最後に

Preview版ですが(1年以上メンテされていない?)、公式にパッケージがあるようです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?