EnumInfo.cs 243 B

1234567891011121314
  1. using System;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. static class EnumInfo<T> where T : Enum
  5. {
  6. public static T[] values;
  7. static EnumInfo()
  8. {
  9. values = (T[])Enum.GetValues(typeof(T));
  10. }
  11. }
  12. }