public override void OnPropertyField(SerializedProperty property, GUIContent label) { IndentAttribute attribute = fieldInfo.GetAttribute <IndentAttribute> (); EditorGUI.indentLevel += attribute.indentLevel; base.OnPropertyField(property, label); EditorGUI.indentLevel -= attribute.indentLevel; }
public override void OnStartGUILayout() { IndentAttribute attr = GetAttr <IndentAttribute>(); EditorGUI.indentLevel += attr.Indent; }
/// <inheritdoc/> public override void OnGUI(Rect position) { IndentAttribute indentAttribute = (IndentAttribute)attribute; EditorGUI.indentLevel += indentAttribute.Amount; }