Tracks and Clips for controlling the Unity UI (uGUI) with Timeline. Slightly modified for use in upcoming UI Framework, Flex UI
Unity UI Playables allows you to control any uGUI components and its parameters with Timeline.
You can easily set up animations using the easing functions.
If you want to create complex animations, you can also use Animation Curve.
Looping of animations is also possible (Repeat, Reverse, and PingPong are supported as loop types).
All clips and all parameters are blendable.
- Open the Package Manager from Window > Package Manager
- "+" button > Add package from git URL
- Enter the following
Or, open Packages/manifest.json and add the following to the dependencies block.
{
"dependencies": {
"com.harumak.unityuiplayables": "https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables"
}
}
If you want to set the target version, specify it like follow.
Press the add track button in Timeline and select the track below UnityUIPlayables.
Next, add the corresponding clip to the track.
The parameters can be controlled from the clip's inspector.
Component Name | Parameter Name |
---|---|
RectTransform | Anchored Position Size Delta Local Rotation Local Scale |
Graphic | Color |
Image | Color Fill Amount |
RawImage | Color UV Rect |
Text | Color Font Size Line Spacing |
Text (Text Mesh Pro) | Font Size Color Gradient (Top Left / Top Right / Bottom Left / Bottom Right) Spacing (Character / Line / Word / Paragraph) Face Color (Only at Runtime) Outline Color (Only at Runtime) Outline Width (Only at Runtime) |
Slider | Value |
Canvas Group | Alpha |
- Clone this repository.
- Open and play the following scene.
This software is released under the MIT License, see LICENSE.md.