Class CubeDrawer
Inherited Members
Namespace: UnityEngine.ProBuilder.Shapes
Assembly: Unity.ProBuilder.dll
Syntax
[CustomPropertyDrawer(typeof(Cube))]
public class CubeDrawer : PropertyDrawer
Methods
OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | Rectangle on the screen to use for the property GUI. |
SerializedProperty | property | The SerializedProperty to make the custom GUI for. |
GUIContent | label | The label of this property. |