Class ExitPlayMode
Implements IEditModeTestYieldInstruction. A new instance of the class is a yield instruction to exit Play Mode.
Implements
Inherited Members
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. |