docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExitPlayMode

    Implements IEditModeTestYieldInstruction. A new instance of the class is a yield instruction to exit Play Mode.

    Inheritance
    object
    ExitPlayMode
    Implements
    IEditModeTestYieldInstruction
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools
    Assembly: UnityEditor.TestRunner.dll
    Syntax
    public class ExitPlayMode : IEditModeTestYieldInstruction

    Constructors

    ExitPlayMode()

    Sets ExpectDomainReload and ExpectedPlaymodeState to false.

    Declaration
    public ExitPlayMode()

    Properties

    ExpectDomainReload

    Gets the value of ExpectDomainReload

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

    ExpectedPlaymodeState

    Gets the value of ExpectedPlaymodeState

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

    Methods

    Perform()

    Performs the multi-step instruction of exiting PlayMode.

    Declaration
    public IEnumerator Perform()
    Returns
    Type Description
    IEnumerator

    An IEnumerator with the async steps.

    Exceptions
    Type Condition
    Exception

    An exception is thrown if the editor is not in PlayMode.

    Implements

    IEditModeTestYieldInstruction
    In This Article
    Back to top
    Copyright © 2024 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)