Layer Assets / VRC Templates
Exporting an AnimatorControllerLayer as an Asset
Save a single AnimatorController layer as a standalone .asset file and restore it into another controller. Handy when you want to reuse a toggle layer on another avatar.
- Save: Right-click a layer in the Animator window →
Export Layer As Asset. The state machine, transitions, and Behaviours are duplicated in full, and the names, types, and default values of the referenced parameters are saved along with them - Restore: Right-click a layer →
Import Layer From Asset. Parameters missing from the destination can be reviewed as a list in a confirmation dialog before being added- For older assets without type information, the type is inferred from how each parameter is used
- Existing parameters with the same name but a different type are left untouched (skipped and reported in the Console)
- From the bottom of the AnimatorLayerAsset Inspector, you can also open / save it as AnimatorDSL via the 「開く / 保存」 (Open / Save) buttons
// API からも使えます
AnimatorLayerAssetUtility.SaveLayerAsAsset(srcLayer, absolutePath, sourceController, isBaseLayer);
AnimatorLayerAssetUtility.LoadLayerFromAsset(layerAsset, targetController);VRC BlendTree / BaseLayer Templates Avatars SDK
Generate VRChat's standard locomotion assets with one click from Assets/Create/VRChat/ (deep-cloned from the SDK Samples).
| Menu | Output |
|---|---|
VRC BlendTree/Stading BlendTree (VRC) and others | BlendTrees for standing / crouching / prone |
VRC BaseLayers/vrc_AvatarV3* (VRC) | Each base layer of the AV3 Demo (Action / Face / Hands / Hands2 / Idle / Locomotion / Sitting / Sitting2 / UtilityIKPose / UtilityTPose) |
Toggle BlendTree for DirectBT
Creates, in a single operation, the whole set of assets for "one toggle" that goes into a Direct BlendTree. It saves you the trouble of creating a BlendTree and the ON / OFF clips one by one and adding the clips as children.
In the Project window, right-click → Create → DirectBT 用トグル BlendTree... (Toggle BlendTree for DirectBT...) opens a save dialog, where you decide where to create the folder and what to name it. A folder with the name you gave (e.g. Hat) is created there, with the following three assets inside.
| Asset | Contents |
|---|---|
Hat.asset | BlendTree (1D). Hat_OFF is at threshold 0 and Hat_ON at threshold 1 |
Hat_OFF.anim | Empty AnimationClip (you fill in the OFF state later) |
Hat_ON.anim | Empty AnimationClip (you fill in the ON state later) |
- The BlendTree's parameter name is left at Unity's default (
Blend). After you put the BlendTree into a Direct BlendTree, replace the parameter with the one for your toggle - If a folder with the same name already exists, a separate folder with a number appended, such as
Hat 1, is created (what is already there is not overwritten) - Works without the VRChat SDK too