Info
- Small, generic pieces you plug into components from the inspector instead of writing a new script each time
- Most of them are configured as polymorphic fields: pick a type in a dropdown, fill its fields
- For wiring prefer
IActivation, IAction and C# events over UnityEvent. Plain uGUI buttons keep Button.onClick
Polymorphic config
- A field typed as an interface or abstract class, stored with
[SerializeReference]
[EnhancedTypeSelector] draws a type dropdown with all serializable implementations. IActivation, IAction and ICondition carry it on the interface, so a field only needs [SerializeReference]
[SerializeReference]
private IActivation _Activation;
[SerializeReference]
private ICondition _Condition;
[SerializeReference]
private List<IAction> _Actions = new();
- Implementations must be
[Serializable] plain C# classes (not MonoBehaviour)
- Renaming or moving such a class breaks existing data, see Serialized Type Migration
Pages
Activations
Actions
Conditions
Data Structures
Scriptable Variables
State Handling
Tween Animator
Visual Presets