Skip to main content

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​

NameTypeDescription
propertySerializedPropertyThe SerializedProperty to make the custom GUI for.

Returns​

VisualElement — The element containing the custom GUI.

  • Methods
    • CreatePropertyGUI(SerializedProperty)