# Animancer-Unity **Repository Path**: gsjengineer/Animancer-Unity ## Basic Information - **Project Name**: Animancer-Unity - **Description**: Animancer-Unity - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-12 - **Last Updated**: 2025-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Animancer-Unity ## How to use: - Add the link below in manifest.json in folder Package ``` "com.graywolves.animancer": "https://github.com/GrayWolves/Animancer-Unity.git#1.0.4", ```
Template code ``` using Animancer; using UnityEngine; public class AnimController : MonoBehaviour { public AnimancerComponent Animancer; public ClipTransition Walk; public ClipTransition Run; public ClipTransition Jump; public ClipTransition Dance; // Play anim walk public void PlayWalk() { if (!Animancer.IsPlaying(Walk)) { var anim = Animancer.Play(Walk); anim.Events.OnEnd = () => { //Event when finish anim; }; } } //play anim dance public void PlayDance() { if (!Animancer.IsPlaying(Dance)) { Animancer.Play(Dance); } } // play anim run public void PlayRun() { if (!Animancer.IsPlaying(Run)) { Animancer.Play(Run); } } //play anim jump public void PlayJump() { if (!Animancer.IsPlaying(Jump)) { Animancer.Play(Jump); } } } ```
- Now, you need to drag the corresponding animation to the inspector ![anim2](https://user-images.githubusercontent.com/56286032/218262858-5b74713e-ba61-4bec-84b6-d52d6fa6e907.png) You can customize ``Fede Duration, Speed, Start Time and End Time`` of animation ## Note: - Open ``scene Demo`` test (Drag Scene demo from folder Package/Animacer to Asset to Play) - ([Document details](https://kybernetik.com.au/animancer/)) - (Package is attached at release)