Class BoundsDrawer
[CustomSuperPropertyDrawer(typeof(Bounds))]
public class BoundsDrawer : SuperPropertyDrawer
- Inheritance
-
GUIDrawerBoundsDrawer
- Inherited Members
Methods
GetPropertyHeight(SuperSerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
public override float GetPropertyHeight(SuperSerializedProperty property, GUIContent label)
Parameters
property
SuperSerializedPropertyThe SuperSerializedProperty to get the height for.
label
GUIContentThe label of the property.
Returns
- float
The height of the GUI for this field in pixels.
OnGUI(Rect, SuperSerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.
public override void OnGUI(Rect position, SuperSerializedProperty property, GUIContent label)
Parameters
position
RectRectangle on the screen to use for the property GUI.
property
SuperSerializedPropertyThe SuperSerializedProperty to make the custom GUI for.
label
GUIContentThe label of the property.