728x90 unity1 [Unity] Assert Class는 개발 빌드에서만 동작한다. UnityEngine namespace에는 Assert라는 클래스가 존재합니다.이름에서 알 수 있다시피, Assertion method를 제공하기 위한 클래스인데요, Assert Method (단정 메서드)를 이용하면, 특정 표현식이 런타임 중 true인지 여부를 판정할 수 있습니다. using UnityEngine;using UnityEngine.Assertions;public class AssertionExampleClass : MonoBehaviour{ public int health; public GameObject go; void Update() { // check the inequality between 0 and health Assert.Are.. 2024. 11. 11. 이전 1 다음 728x90