Glossary / Preparation and runtime
Script compilation
Script compilation converts C# source files into the assemblies used by Unity.
In BAS
Generate AnimInstance writes runtime C# source. The new type becomes available after successful compilation and the required assembly reload.
This is separate from BAS graph compilation, which prepares an animation graph program. A source error can prevent the new runtime type from becoming available.
Example
Generate the runtime class, wait for compilation and reload, then check the graph instance-type selection.
- Generate AnimInstanceWrite C# source
- Unity compilationCompile and reload the assembly
- Runtime typeSelect the type in BAS
Tools and examples
Reference details
This definition describes the term as used in BAS 1.0.