Skip to content

Instantly share code, notes, and snippets.

@FFouetil
FFouetil / EnumFlagAttribute.cs
Last active February 10, 2021 02:16 — forked from ChemiKhazi/EnumFlagAttribute.cs
Unity3d property drawer for automatically making enums flags into mask fields in the inspector.
using UnityEngine;
public class EnumFlagAttribute : PropertyAttribute
{
public string enumName;
public EnumFlagAttribute() {}
public EnumFlagAttribute(string name)
{