A generic, easy-to-use animation system for Unity Transform on UdonSharp.
Animate Unity Canvas UI and 3D GameObjects with the same API.
Renamed from Canvas Animation System. This release is a full rename with no compatibility shim. See Migration.
Component or GameObject — Canvas UI, 3D objects, and everything with a TransformToggle / Activate / Deactivate), also schedulable with afterSetCustomReceiver) that receive eased progress while an animation runsSetCustomReceiver drives any UdonSharp behaviour with the same timing and easing pipeline as the built-in animations.
Inherit from UdonAnimationCallbackReceiver:
using net.puk06.UdonAnimation;
using UdonSharp;
public class MyReceiver : UdonAnimationCallbackReceiver
{
public override void OnAnimationUpdate(string identifier, float eased)
{
// Called every frame. eased is 0 -> 1 with the selected TransitionType applied.
}
public override void OnAnimationComplete(string identifier)
{
// Called once when the animation finishes.
}
}
Then pass it to the animation system:
using net.puk06.UdonAnimation.Models;
animationSystem.SetCustomReceiver(receiver, 1f, 0f, TransitionType.EaseOut, "open");
| Before | After |
|---|---|
net.puk06.canvas-animation-system | net.puk06.udon-animation-system |
net.puk06.UdonAnimation | net.puk06.UdonAnimation |
UdonAnimationSystem | UdonAnimationSystem |
RectTransformUtils | TransformUtils |
Move(..., int pixelOffset, ...) | Move(..., float offset, ...) |
Update namespaces and the component type name in your scripts and scenes. There is no UdonAnimationSystem alias in this version.
Note: The Wiki for this project is still in progress. The API is almost identical to UdonAnimationSystem, so refer to the UdonAnimationSystem Wiki for usage details. Apply the renames listed in Migration.
Detailed setup instructions, API reference, and examples are available in the Wiki.
📚 Wiki Sections:
See LICENSE.
net.puk06.udon-animation-system
Undefined
0.3.0
2022.3 or later
No dependencies
No legacy packages
Undefined