Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
R2API Animations
API for modifying RuntimeAnimatorController
| Last updated | 7 months ago |
| Total downloads | 335640 |
| Total rating | 5 |
| Categories | Libraries |
| Dependency string | RiskofThunder-R2API_Animations-1.2.0 |
| Dependants | 41 other packages depend on this package |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2109README
R2API.Animations - Modifying RuntimeAnimatorController
About
R2API.Animations is a submodule assembly for R2API that allows mod creators to modify existing RuntimeAnimatorController at runtime.
You can add:
- Parameters.
- Layers.
- Sub-State Machines.
- Behaviours.
- States (both clips and blend trees).
- Transitions.
Since applying modifications to a controller is somewhat complicated and slow operation, the changes are cached.
The cache for a controller is rebuilt when a mod version is changed.
For development there is a config option IgnoreCache, so that you don't have to constantly change mod version or manually delete cache.
Unity
When imported into Unity, adds an option in context menu Create/R2API/Animations/AnimatorDiff. In AnimatorDiff you specify Modified Controller which should have all things that Source Controller has + your modifications.
To create Modified Controller use option Assets/R2API/Animation/Copy AnimatorController for modification in context menu on a Source Controller.
After that you add the AnimatorDiff to an AssetBundle and in code you can create an instance of AnimatorModifications with AnimatorModifications.CreateFromDiff().
Changelog
'1.2.0'
- Added support for behaviours.
- Added support for child
StateMachines. - Added support for new layers.
- Added
Copy AnimatorController for modificationbutton to context menu in Unity. ClipBundlePathis no longer required forStateandChildMotion.- Cache detection has been simplified. Now only changes to mod version will cause a rebuild. During development change config option
IgnoreCacheto true.
'1.1.1'
- Fix NuGet package
'1.1.0'
- Added support for
BlendTrees. - Added
AnimatorDiffthat you can create inside editor and load at runtime.
'1.0.1'
- Values for
NewStatesandNewTransitionsdictionaries are now lists
'1.0.0'
- Release