Inheritance: PropertyAttribute
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            a = (StyledCategory)attribute;

            GUI.enabled = true;

            StyledGUI.DrawInspectorCategory(position, a.category);
        }
Ejemplo n.º 2
0
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            a = (StyledCategory)attribute;

            GUI.enabled           = true;
            EditorGUI.indentLevel = 0;

            GUILayout.Space(a.top);
            StyledGUI.DrawInspectorCategory(a.category);
            GUILayout.Space(a.down);
        }
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            a = (StyledCategory)attribute;

            property.boolValue = StyledGUI.DrawInspectorCategory(a.category, property.boolValue, a.top, a.down, a.colapsable);
        }