Constructor RecompileScripts
RecompileScripts()
Creates a new instance of the RecompileScripts
yield instruction.
[UnitySetUp]
public IEnumerator SetUp()
{
using (var file = File.CreateText("Assets/temp/myScript.cs"))
{
file.Write("public class ATempClass { }");
}
AssetDatabase.Refresh();
yield return new RecompileScripts();
}
Declaration
public RecompileScripts()
RecompileScripts(bool)
Creates a new instance of the RecompileScripts
yield instruction.
Declaration
public RecompileScripts(bool expectScriptCompilation)
Parameters
Type | Name | Description |
---|---|---|
bool | expectScriptCompilation | This parameter indicates if you expect a script compilation to start (defaults to true). If a script compilation does not start and |
RecompileScripts(bool, bool)
Creates a new instance of the RecompileScripts
yield instruction.
Declaration
public RecompileScripts(bool expectScriptCompilation, bool expectScriptCompilationSuccess)
Parameters
Type | Name | Description |
---|---|---|
bool | expectScriptCompilation | This parameter indicates if you expect a script compilation to start (defaults to true). If a script compilation does not start and |
bool | expectScriptCompilationSuccess | This parameter indicates if you expect a script compilation to succeed. If not succeeded then an exception will be thrown. |