Example #1
0
		public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
			drawPrefixLabel = false;
			
			Begin(position, property, label);
			
			float max = ((MaxAttribute)attribute).max;
		
			EditorGUI.BeginChangeCheck();
			EditorGUI.PropertyField(currentPosition, property, label, true);
			if (EditorGUI.EndChangeCheck()) {
				property.Max(max);
			}
			
			End();
		}