文档

Unity Engine

Unity Engine

CreatePropertyGUI(SerializedProperty)

Creates custom GUI with UI Toolkit for the property.
阅读时间1 分钟最后更新于 1 个月前

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.