Class ShowAssetPreviewPropertyDrawer
Custom property drawer for ShowAssetPreviewAttribute.
[CustomPropertyDrawer(typeof(ShowAssetPreviewAttribute))]
public class ShowAssetPreviewPropertyDrawer : PropertyDrawer
Inheritance
Methods
CreatePropertyGUI(SerializedProperty)
Make custom UI Toolkit based GUI for the property.
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
| Name | Type | Description |
|---|---|---|
property | SerializedProperty | The SerializedProperty to make the custom GUI for. |
Returns
VisualElement — The element containing the custom GUI.