You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
374 B
13 lines
374 B
using UnityEditor; |
|
using UnityEngine; |
|
|
|
namespace ZenFulcrum.EmbeddedBrowser { |
|
|
|
[CustomPropertyDrawer(typeof(FlagsFieldAttribute))] |
|
public class FlagsEditor : PropertyDrawer { |
|
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { |
|
property.intValue = EditorGUI.MaskField(position, label, property.intValue, property.enumNames); |
|
} |
|
} |
|
|
|
}
|
|
|