Class ColorDrawer
[CustomSuperPropertyDrawer(typeof(Color))]
[CustomSuperPropertyDrawer(typeof(Color32))]
public class ColorDrawer : SuperPropertyDrawer
- Inheritance
-
GUIDrawerColorDrawer
- Inherited Members
Methods
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.