#ACaaC: A small Unity Editor Library to generate AnimatorController with C# Code.
Inspired by AV3 Animator as Code but it depends on VRChat SDK. This library is made for vanilla Unity without any libraries.
This project is also published on OpenUPM. See Package Page on OpenUPM for Installation steps.
You can add https://github.com/anatawa12/AnimatorController-as-a-Code.git#<version>
as git-based UPM dependencies.
See Installing from a Git URL on Unity Documentation for more details.
You may install this package using VPM/VCC CLI. This is recommended step for VRChat Avatars/Worlds Projects.
# add our vpm repository
vpm add repo https://vpm.anatawa12.com/vpm.json
# add package to your project
cd /path/to/your-unity-project
vpm add package com.anatawa12.animator-controller-as-a-code
With VPAI You can include this package with
vpm-resolver
. If your project is VRChat Avatars/Worlds project with VCC, It’s installed.Install ACaaC to your Unity Package
If your project is version controlled, please ignore *.generated.controller
from version control.
Create Assembly Definition file for ACaaC Generators.
It’s recommended to completely separate your main module and ACaaC Generator Code to reduce regeneration. However, it’s supported to use asmdef for your main module.
Reference com.anatawa12.animator-controller-as-a-code.framework.asmdef
in Packages/com.anatawa12.animator-controller-as-a-code/Framework
Create class extends Anatawa12.AnimatorControllerAsACode.Framework.GeneratorLayerBase
in your module & write generation code
Create/Animator Controller Generator
in context menu of Project tab in Unity to create AnimatorControllerGenerator
Click Add Generaor
and select your Generator created in step 5.
Configure your generator.
Close Inspector or click Manual Generate
to generate your AnimatorController
When you modify something, ACaaC will automatically re-runs generator to keep up-to-date generated controller.
For detail API documentation, see documentation comments.
This system uses Semantic Versioning.
com.anatawa12.animator-controller-as-a-code
Undefined
0.2.12
2019.4 or later
No legacy packages
Undefined
anatawa12