Skip to main content

Class SerializableKeyValuePairDrawer

Custom property drawer for SerializableKeyValuePair.

[CustomPropertyDrawer(typeof(SerializableKeyValuePair<,>), true)]
public class SerializableKeyValuePairDrawer : PropertyDrawer

Inheritance​

Methods​

CreatePropertyGUI(SerializedProperty)​

Creates the custom property GUI for SerializableKeyValuePair.

public override VisualElement CreatePropertyGUI(SerializedProperty property)

Parameters​

NameTypeDescription
propertySerializedPropertyThe serialized property to draw.

Returns​

VisualElement — The element containing the custom GUI.

  • Methods
    • CreatePropertyGUI(SerializedProperty)