Documentation

Unity Engine


Unity Engine


CreatePropertyGUI(SerializedProperty)

Creates custom GUI with UI Toolkit for the property.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public virtual VisualElement CreatePropertyGUI(SerializedProperty property)

Parameters

The SerializedProperty to make the custom GUI for.

Returns

Type

Description

VisualElementThe element containing the custom GUI.

Remarks

See PropertyDrawer for an example of making a custom property drawer that uses CreatePropertyGUI.