Class EffectEntryDrawer

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll

Shows only the fields the selected method reads. Evaluated methods (Link, Convert, Limit) reveal their source, transform and limit fields; every entry shows lifetime and inline validation from EffectEntry.Validate().

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

Constructors

EffectEntryDrawer()

public EffectEntryDrawer()

Methods

CreatePropertyGUI(SerializedProperty)

public override VisualElement CreatePropertyGUI(SerializedProperty property)

Parameters

property SerializedProperty

Returns

VisualElement

Read(SerializedProperty)

Null-tolerant read of every authored field, so older serialized entries still preview and validate.

public static EffectEntry Read(SerializedProperty property)

Parameters

property SerializedProperty

Returns

EffectEntry