Class RecompileScripts
RecompileScripts
is an IEditModeTestYieldInstruction that you can yield in Edit Mode tests. It lets you trigger a recompilation of scripts in the Unity Editor.
Implements
Inherited Members
Namespace: UnityEngine.TestTools
Assembly: solution.dll
Syntax
public class RecompileScripts : IEditModeTestYieldInstruction
Constructors
Name | Description |
---|---|
RecompileScripts() | Creates a new instance of the
|
RecompileScripts(bool) | Creates a new instance of the |
RecompileScripts(bool, bool) | Creates a new instance of the |
Properties
Name | Description |
---|---|
Current | The current active instance of the RecompileScripts yield instruction. |
ExpectDomainReload | Returns true if the instruction expects a domain reload to occur. |
ExpectScriptCompilation | Indicates whether a script compilation is expected. |
ExpectScriptCompilationSuccess | Indicates whether the expected script compilation is expected to succeed. |
ExpectedPlaymodeState | Returns true if the instruction expects the Unity Editor to be in Play Mode. |
Methods
Name | Description |
---|---|
Perform() | Perform the multi step instruction of triggering a recompilation of scripts and waiting for its completion. |