docs.unity.cn
    Show / Hide Table of Contents

    Interface IEditModeTestYieldInstruction

    In an Edit Mode test, you can use IEditModeTestYieldInstruction interface to implement your own instruction. There are also a couple of commonly used implementations available:

    • EnterPlayMore
    • ExitPlayMode
    • RecompileScripts
    • WaitForDomainReload
    Namespace: UnityEngine.TestTools
    Syntax
    public interface IEditModeTestYieldInstruction

    Properties

    ExpectDomainReload

    Whether or not the instruction expects a domain reload to occur.

    Declaration
    bool ExpectDomainReload { get; }
    Property Value
    Type Description
    Boolean

    ExpectedPlaymodeState

    Whether or not the instruction expects the Unity Editor to be in Play Mode.

    Declaration
    bool ExpectedPlaymodeState { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Perform()

    Used to define multi-frame operations performed when instantiating a yield instruction.

    Declaration
    IEnumerator Perform()
    Returns
    Type Description
    IEnumerator

    Enumerable collection of operations to perform.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, July 19, 2022
    Terms of use