123456789101112131415161718 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEditor;
- using UnityEngine;
- namespace SC.XR.Unity
- {
- [CustomPropertyDrawer(typeof(EnumMultiAttribute))]
- public class EnumMultiAttributeDrawer : PropertyDrawer
- {
- public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
- {
- property.intValue = EditorGUI.MaskField(position, label, property.intValue, property.enumNames);
- }
- }
- }
|