Unity UI Playables

repository·master·Indexed 19 days ago

https://github.com/haruma-k/unityuiplayables

A set of tracks and clips for controlling Unity UI (uGUI) components and parameters via the Timeline workflow. Supports controllable parameters for RectTransform, Graphic, Image, RawImage, Text, Text Mesh Pro, Slider, and Canvas Group, featuring easing functions, animation curves, looping, and blending.

Tokens
585
Snippets
2
Records
5
Agent score
18%

What's inside Unity UI Playables

  1. Key features of Unity UI Playables

    master

    Unity UI Playables provides several animation capabilities for uGUI:

    • Easings and Animation Curves: Use easing functions or custom Animation Curves for complex movements.
    • Looping: Supports Repeat, Reverse, and PingPong loop types.
    • Blending: All clips and parameters are blendable, allowing for smooth transitions between animation states.
  2. Use Unity UI Playables in Timeline

    master

    Unity UI Playables allows you to control uGUI components using Timeline tracks and clips.

    1. Open your Timeline window.
    2. Click the Add Track button.
    3. Select a track from the UnityUIPlayables category.
    4. Add a clip to the track.
    5. Adjust the parameters of the clip via the Inspector window.
  3. Install Unity UI Playables via Package Manager

    master

    To install Unity UI Playables in your Unity project, use the Package Manager to add the package via its Git URL.

    1. Open Window > Package Manager.
    2. Click the "+" button.
    3. Select Add package from git URL.
    4. Enter the following URL: https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables

    To target a specific version, append the version tag to the URL (e.g., #0.1.0).

    https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables
  4. Install Unity UI Playables via manifest.json

    master

    Alternatively, you can manually add the package to your project's Packages/manifest.json file by adding the dependency entry to the dependencies block.

    {
        "dependencies": {
            "com.harumak.unityuiplayables": "https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables"
        }
    }
  5. Reference of controllable uGUI parameters

    master

    The following components and parameters can be controlled via Unity UI Playables tracks and clips:

    Component NameParameter Name
    RectTransformAnchored Position, Size Delta, Local Rotation, Local Scale
    GraphicColor
    ImageColor, Fill Amount
    RawImageColor, UV Rect
    TextColor, 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 (Runtime only), Outline Color (Runtime only), Outline Width (Runtime only)
    SliderValue
    Canvas GroupAlpha