Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

PropertyDrawer.OnGUI

public function OnGUI(position: Rect, property: SerializedProperty, label: GUIContent): void;

Parameters

position Rectangle on the screen to use for the property GUI.
property The SerializedProperty to make the custom GUI for.
label The label of this property.

Description

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