@ao_serialize
Select fields for scene, Inspector, and JSON serialization.
Enemy :: class : Component {
// Saved, shown in inspector, included in scene data
max_health: int @ao_serialize;
patrol_radius: float @ao_serialize;
// Runtime-only — not saved, not in inspector
current_target: v2;
aggro_timer: float;
}What it does
Supported types
Type
Example
Using with components
Using with the Save system
Using with standalone JSON
Default values and schema changes
What NOT to serialize
Common patterns
Enums for mode selection
Nested structs
Asset references
Last updated