Glossary / Preparation and runtime
Instance contract
An instance contract identifies the AnimInstance type and graph data layout expected by a graph.
In BAS
The runtime class and its generated graph accessors must agree with the declared layout. A code graph can use a prepared graph as that contract for its instance type.
This contract is separate from the prepared rig contract. The rig contract checks the animation target; the instance contract connects runtime update data to the graph.
Example
After generating or changing the runtime instance class, wait for compilation and reload before checking the graph type selection.
- AnimInstance classProvides the runtime type
- Instance contractMatches the type and layout
- Graph definitionUses the matching runtime data
Tools and examples
Reference details
This definition describes the term as used in BAS 1.0.
Source: Runtime/API/AnimGraphBuilder.Nodes.cs.