Diagnostic code · ARA0706
Invalid behaviour declaration
The generator cannot construct the behaviour or implement its ECS-backed properties. Compilation fails; the last good module keeps running.
Common causes
- The behaviour has no public or internal parameterless constructor.
- A
[Property]member is static or is not a partial property definition without a body.
Fixes
Provide a public parameterless constructor so the runtime can create one behaviour object per entity.
Declare ECS-backed values as instance properties such as
[Property] public partial float Speed { get; set; }and let the generator implement their storage.Code:
ARA0706Constant:
cs::BAD_BEHAVIOURReported by: Ara.Generators