ドキュメント

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.