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
-
GUIDrawerPropertyDrawerEffectEntryDrawer
- Inherited Members
-
PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)PropertyDrawer.attributePropertyDrawer.fieldInfoPropertyDrawer.preferredLabel
Constructors
EffectEntryDrawer()
public EffectEntryDrawer()
Methods
CreatePropertyGUI(SerializedProperty)
public override VisualElement CreatePropertyGUI(SerializedProperty property)
Parameters
propertySerializedProperty
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
propertySerializedProperty