public static function IsTrue(condition:
bool):
void;
public static void IsTrue(bool condition);
public static function IsTrue(condition:
bool,
message: string):
void;
public static void IsTrue(bool condition,
string message);
パラメーター
説明
true となる条件のアサート
public class AssertionExampleClass : MonoBehaviour {
void Update () {
//Make sure the Game Object is always in active state
Assert.IsFalse(gameObject.activeSelf);
}
}