# CreatePropertyGUI(SerializedProperty)

> Creates custom GUI with UI Toolkit for the property.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public virtual VisualElement CreatePropertyGUI(SerializedProperty property)
```

### Parameters

**** (\[SerializedProperty]\(/engine/6000.5/script-reference/unityeditor/serializedproperty)): The SerializedProperty to make the custom GUI for.

### Returns

| Type                                                                                     | Description                            |
| ---------------------------------------------------------------------------------------- | -------------------------------------- |
| [VisualElement](/engine/6000.5/script-reference/unityengine/uielements/visualelement.md) | The element containing the custom GUI. |

### Remarks

See [PropertyDrawer](/engine/6000.5/script-reference/unityeditor/propertydrawer.md) for an example of making a custom property drawer that uses CreatePropertyGUI.
