CastActor.component
This package holds more than this page lists. See all of its files in its world.
README.md
CastActor
Drives one 3D cast member of "Kicked Out of the Hero's Party". It sits on the root of a cast character bundle (put there by Cast3D.spawnCharacter) beside a Humanoid component, and rebuilds the character's visuals on every peer from its synced fields: the baked anime cel material on the skinned mesh, the current action's clip through a ClipPlayer on that mesh, and each worn gear model seated on the character's own Humanoid avatar point.
| field | meaning |
|---|---|
character | cast id, a key of Cast3D.CHARACTERS |
action | action playing now, a key of Cast3D.CLIPS |
after | action a one-shot returns to (empty: the character's idle) |
nonce | bumped by Cast3D.play to restart the same action |
gear | worn gear ids, comma separated; ^id wears a weapon sheathed on the back |
cel | wear the cel material (false: the generated PBR look) |
speed | clip playback speed |
Use Cast3D.play, Cast3D.equip, Cast3D.unequip and Cast3D.wearSet rather than writing the fields by hand. Nothing it spawns is saved or synced, so a reload or a late joiner gets the same character from the fields alone.