Class UIntDrawer
Creates proper VisualElement for the uint data
Inherited Members
Namespace: UnityEditor.Perception.Randomization.PropertyDrawers
Assembly: Unity.Perception.Editor.dll
Syntax
[CustomPropertyDrawer(typeof(uint))]
public class UIntDrawer : PropertyDrawer
Methods
CreatePropertyGUI(SerializedProperty)
Create proper Visual Element for the uint data
Declaration
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | Property to draw |
Returns
Type | Description |
---|---|
VisualElement | Proper UI representation for the uint data |
Overrides
GetPropertyHeight(SerializedProperty, GUIContent)
Returns the proper height for the drawable property
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | Property to calculate |
GUIContent | label | Label to use |
Returns
Type | Description |
---|---|
float | Height of the visual element as float |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Draws the property
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | Area to draw |
SerializedProperty | property | Property to draw |
GUIContent | label | Label to use |