Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

OnGUI(position: Rect, property: SerializedProperty, label: GUIContent): void;
void OnGUI(Rect position, SerializedProperty property, GUIContent label);
def OnGUI(position as Rect, property as SerializedProperty, label as GUIContent) as void

Parameters

positionRectangle on the screen to use for the property GUI.
propertyThe SerializedProperty to make the custom GUI for.
labelThe label of this property.

Description

Override this method to make your own GUI for the property.