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();
}
선언
public RecompileScripts()
RecompileScripts(bool)
Creates a new instance of the RecompileScripts
yield instruction.
선언
public RecompileScripts(bool expectScriptCompilation)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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.
선언
public RecompileScripts(bool expectScriptCompilation, bool expectScriptCompilationSuccess)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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. |