Diagnostic code · ARA0101
Behaviour field without transient marker
A Behaviour instance field is not marked [Transient]. Behaviour objects are recreated on reload and cannot own authoritative state. The edit is rejected; the last good code keeps running.
Common causes
- Gameplay values are stored in ordinary behaviour fields.
- A disposable presentation cache lacks
[Transient].
Fixes
Convert persistent values to
[Property]partial instance properties backed by the behaviour's ECS column, or move them into a component.For a cache that can be lost and rebuilt on reload, apply the
Mark as [Transient] cachecode fix.Code:
ARA0101Constant:
cs::BEHAVIOUR_FIELDReported by: Ara.Analyzers