DrawBitMaskField() public static method

public static DrawBitMaskField ( Rect aPosition, int aMask, System aType, GUIContent aLabel ) : int
aPosition Rect
aMask int
aType System
aLabel GUIContent
return int
コード例 #1
0
    public override void OnGUI(Rect position, SerializedProperty prop, GUIContent label)
    {
        var typeAttr = attribute as BitMaskAttribute;

        prop.intValue = EditorExtensions.DrawBitMaskField(position, prop.intValue, typeAttr.propType, label);
    }