GENERAL
ROTORS
DocumentationBAS 1.0

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.

  1. AnimInstance classProvides the runtime type
  2. Instance contractMatches the type and layout
  3. Graph definitionUses the matching runtime data
The instance contract checks that the runtime type and the declared graph data layout match.

Tools and examples

Reference details

This definition describes the term as used in BAS 1.0.

Source: Runtime/API/AnimGraphBuilder.Nodes.cs.

General Rotors · Burst Animation System · Glossary