• This repository has been archived on 15/Jul/2024
  • Stars
    star
    481
  • Rank 91,384 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tracks and Clips for controlling the Unity UI (uGUI) with Timeline.

Unity UI Playables

Tracks and Clips for controlling the Unity UI (uGUI) with Timeline.

Demo

Features

Control Unity UI (uGUI)

Unity UI Playables allows you to control any uGUI components and its parameters with Timeline.

Control Unity UI

Easings and Animation Curve

You can easily set up animations using the easing functions.
If you want to create complex animations, you can also use Animation Curve.

Easings and Animation Curve

Looping of animations is also possible (Repeat, Reverse, and PingPong are supported as loop types).

Blending

All clips and all parameters are blendable.

Blending

Setup

Requirement

Unity 2019.4 or higher.

Install

  1. Open the Package Manager from Window > Package Manager
  2. "+" button > Add package from git URL
  3. Enter the following

Package Manager

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.

License

This software is released under the MIT License.
You are free to use it within the scope of the license.
However, the following copyright and license notices are required for use.

Usage

Create Tracks and Clips

Press the add track button in Timeline and select the track below UnityUIPlayables.

Create Tracks and Clips

Next, add the corresponding clip to the track.
The parameters can be controlled from the clip's inspector.

Controllable Parameters

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

Demo

  1. Clone this repository.
  2. Open and play the following scene.