Class ColorBlockDrawer
Inherited Members
Namespace: UnityEditor.UI
Syntax
[CustomPropertyDrawer(typeof(ColorBlock), true)]
public class ColorBlockDrawer : PropertyDrawer
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty prop, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedProperty | prop | |
| GUIContent | label |
Returns
| Type | Description |
|---|---|
| Single |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect rect, SerializedProperty prop, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | rect | |
| SerializedProperty | prop | |
| GUIContent | label |