Class NonNegativePropertyDrawer
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Assembly-CSharp-Editor.dll
A property drawer for fields marked with the NonNegative Attribute.
[Version(1, 2, 0)]
[CustomPropertyDrawer(typeof(NonNegativeAttribute))]
public class NonNegativePropertyDrawer : PropertyDrawer
- Inheritance
-
GUIDrawerNonNegativePropertyDrawer
- Inherited Members
-
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)PropertyDrawer.attributePropertyDrawer.fieldInfo
- Extension Methods
Methods
OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
position
RectRectangle on the screen to use for the property GUI.
property
SerializedPropertyThe SerializedProperty to make the custom GUI for.
label
GUIContentThe label of this property.