Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Haruma-K/UnityUIPlayables
Tracks and Clips for controlling the Unity UI (uGUI) with Timeline.
https://github.com/Haruma-K/UnityUIPlayables
animation playable playables timeline ugui unity unityui
Last synced: 3 days ago
JSON representation
Tracks and Clips for controlling the Unity UI (uGUI) with Timeline.
- Host: GitHub
- URL: https://github.com/Haruma-K/UnityUIPlayables
- Owner: Haruma-K
- License: mit
- Archived: true
- Created: 2021-04-01T13:31:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T04:21:52.000Z (4 months ago)
- Last Synced: 2024-08-02T05:13:16.212Z (3 months ago)
- Topics: animation, playable, playables, timeline, ugui, unity, unityui
- Language: C#
- Homepage:
- Size: 1.32 MB
- Stars: 470
- Watchers: 11
- Forks: 51
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Unity UI Playables
> [!WARNING]
> From several perspectives, I recommend controlling UI animations with keyframes rather than clips. For reference, see this link:
> https://forum.unity.com/threads/animation-events-on-last-frame-arent-fired-in-timeline-when-its-the-last-frame-of-the-timeline.791258/.
>
> Therefore, this repository will be archived. When controlling the Timeline with keyframes, I strongly recommend using the following assets:
> https://assetstore.unity.com/packages/tools/animation/curvify-277062.Tracks and Clips for controlling the Unity UI (uGUI) with Timeline.
## Features
#### Control Unity UI (uGUI)
Unity UI Playables allows you to control any uGUI components and its parameters with Timeline.
#### 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.
Looping of animations is also possible (Repeat, Reverse, and PingPong are supported as loop types).
#### Blending
All clips and all parameters are blendable.
## 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
* https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables
Or, open Packages/manifest.json and add the following to the dependencies block.
```json
{
"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.
* https://github.com/Haruma-K/UnityUIPlayables.git?path=/Assets/UnityUIPlayables#0.1.0#### 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.* https://github.com/Haruma-K/UnityUIPlayables/blob/master/LICENSE.md
## Usage
#### Create Tracks and Clips
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.## 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.
* https://github.com/Haruma-K/UnityUIPlayables/blob/master/Assets/Demo/Scenes/Demo.unity