Class ValidationPropertyDrawer
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
Property drawer for attributes that derive from ValidationAttribute.
[CustomPropertyDrawer(typeof(ValidationAttribute), true)]
[Version(4, 3, 0)]
public class ValidationPropertyDrawer : PropertyDrawer
- Inheritance
-
GUIDrawerValidationPropertyDrawer
- Derived
- Inherited Members
-
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)PropertyDrawer.attributePropertyDrawer.fieldInfo
- Extension Methods
Remarks
This is one of the key classes to support validating and constraining values in the Unity editor.
See Property Drawers for more details.
Methods
- GetPropertyHeight(SerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
- OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.