Пример #1
0
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            Begin(position, property, label);

            currentPosition.height = EditorGUI.GetPropertyHeight(property, label);
            currentPosition        = EditorGUI.PrefixLabel(currentPosition, label);

            BeginIndent(0);
            EditorGUI.PropertyField(currentPosition, property, GUIContent.none);
            EndIndent();

            currentPosition.x -= 21f;
            currentPosition.y -= 1f;
            CustomEditorBase.Errors(currentPosition, errors);

            End();
        }