BitMaskAttribute.cs 443 B

12345678910111213141516171819
  1. 
  2. using UnityEngine;
  3. namespace FirstGearGames.Utilities.Editors
  4. {
  5. /// <summary>
  6. /// SOURCE: https://answers.unity.com/questions/1477896/assign-enum-value-from-editorguienumflagsfield.html
  7. /// </summary>
  8. public class BitMaskAttribute : PropertyAttribute
  9. {
  10. public System.Type propType;
  11. public BitMaskAttribute(System.Type aType)
  12. {
  13. propType = aType;
  14. }
  15. }
  16. }