Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Utilities/EnumInfo.cs

15 lines
243 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using System;
namespace UnityEditor.ShaderGraph
{
static class EnumInfo<T> where T : Enum
{
public static T[] values;
static EnumInfo()
{
values = (T[])Enum.GetValues(typeof(T));
}
}
}