Character Definition
CharacterDefinition is versioned data in a Character package. The latest source schema is V11. The public Content projection version is a separate version line: use loadCharacterContentV11 when the Consumer needs the current repertoire, capabilities, and presentation fields.
Top-level fields
| Field | Purpose |
|---|---|
schemaVersion |
Source schema version; latest is 11. |
id |
Stable identity of this Character contribution. |
display |
Localized display name and optional description. |
render |
Primary/fallback asset IDs, normalized anchor, and optional scale. |
behavior |
Enabled state, opportunity interval, idle threshold, cooldown, jitter, and action preferences. |
personality |
Optional bounded traits: curiosity, sociability, assertiveness, caution, persistence, and playfulness. |
presentationBehavior |
Optional authored normal, calm, and alert stances with bounded action suppression values. |
presentation |
Clip definitions and bindings for idle, locomotion, action phases, reactions, and authored autonomous actions. |
capabilities |
V11 autonomousActions repertoire. This is capability, not current applicability. |
characterActionPreferences |
V11 preference contributions for inspect, emote, and rest; activation/visit preferences remain in Behavior's V3 actionPreferences. |
Behavior fields
Behavior scheduling fields are enabled, meanOpportunityIntervalMs, minimumIdleDurationMs, postActionCooldownMs, and opportunityIntervalJitterRatio. Some fields are optional. The validator checks their ranges and Content resolves defaults. See the parameter reference.
Action preferences are bounded masses/weights used by the current policy mapping. A missing or zero preference is not the same as an unsupported action. Personality and scheduling resolution produce effective values from source snapshots; inspect the Runtime resolver output rather than reimplementing that mapping.
V10 to V11 lineage
| Version | Addition represented by the current source lineage |
|---|---|
| V1–V9 | Versioned render, Behavior, Presentation, Personality, and binding projections. Older source schemas remain supported through explicit loaders/projectors. |
| V10 | Authored Presentation Behavior (normal, calm, alert) with bounded suppression constraints. |
| V11 | Character repertoire/capabilities, custom inspect/emote/rest action preferences, and Presentation V6 autonomous-action bindings. |
Use the appropriate validator and loader when changing a package version. loadCharacterContentV10 and loadCharacterContentV11 intentionally expose different projection versions. See Schema Reference.
Presentation bindings
presentation.clips maps clip keys to image/frame-sequence/Rive declarations supported by the schema. presentation.bindings maps semantic roles such as idle, locomotion, action phases, reactions, and autonomous actions to clip keys. For example, the V11 Oat fixture maps interaction-context-invalidated to recovery and character-touched to touch. Bindings determine which clips play.
Validate and import
Use Package Runtime/Validator through Public Content. Do not trust JSON parsing alone: the loader checks definition and declared resources and returns structured issues on failure. Studio imports .chara archives through its existing package/archive path, then runs the same package validation path. See First Character and Studio.