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;

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.