Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

PropertyDrawer.OnGUI

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

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.