docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace Unity.EditorCoroutines.Editor

    Classes

    EditorCoroutine

    Manages and executes coroutines within the Unity Editor environment.

    EditorCoroutineUtility

    Utility class used to control the execution of editor coroutines.

    EditorWaitForSeconds

    Suspends the EditorCoroutine execution for the given amount of seconds, using unscaled time. The coroutine execution continues after the specified time has elapsed.

    using System.Collections;
    using UnityEngine;
    using Unity.EditorCoroutines.Editor;
    using UnityEditor;
    

    public class MyEditorWindow : EditorWindow { IEnumerator PrintEachSecond() { var waitForOneSecond = new EditorWaitForSeconds(1.0f);

        while (true)
        {
            yield return waitForOneSecond;
            Debug.Log("Printing each second");
        }
    }
    

    }

    EditorWindowCoroutineExtension

    Extension class for allowing EditorWindow derived types to access coroutine functionality.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)