init(graph:)
Creates a component that drives skeletal animation on an entity using the supplied compiled animation graph.
Declaration
init(graph: AnimationGraphResource)Parameters
- graph:
The compiled Animationgraphresource that drives this component.
Discussion
Per-instance evaluation state initializes when the entity becomes active in a scene, so accessors such as activeNodes return an empty array until the first evaluation tick has run.