study/first_study/Library/PackageCache/com.unity.shadergraph@3686fafd4720/Editor/Util/AssertHelpers.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

22 lines
427 B
C#

using UnityEngine.Assertions;
namespace UnityEditor.ShaderGraph
{
static class AssertHelpers
{
public static void IsNotNull(object anObject, string message)
{
#if SG_ASSERTIONS
Assert.IsNotNull(anObject, message);
#endif
}
public static void Fail(string message)
{
#if SG_ASSERTIONS
throw new AssertionException(message, null);
#endif
}
}
}