コード例 #1
0
        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;
        }
コード例 #2
0
        public override void OnStartGUILayout()
        {
            IndentAttribute attr = GetAttr <IndentAttribute>();

            EditorGUI.indentLevel += attr.Indent;
        }
コード例 #3
0
        /// <inheritdoc/>
        public override void OnGUI(Rect position)
        {
            IndentAttribute indentAttribute = (IndentAttribute)attribute;

            EditorGUI.indentLevel += indentAttribute.Amount;
        }