Class OptionalCountDrawer

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll

"Enabled + Count" on one line; the count is only editable while enabled.

[CustomPropertyDrawer(typeof(OptionalCount))]
public sealed class OptionalCountDrawer : PropertyDrawer
Inheritance
GUIDrawer
PropertyDrawer
OptionalCountDrawer
Inherited Members
PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
PropertyDrawer.preferredLabel

Constructors

OptionalCountDrawer()

public OptionalCountDrawer()

Methods

CreatePropertyGUI(SerializedProperty)

public override VisualElement CreatePropertyGUI(SerializedProperty property)

Parameters

property SerializedProperty

Returns

VisualElement