Skip to content

Powered by DOTween. Tweening Components is a package that provides a set of preset components to animate UGUI in Unity with scriptable objects.

License

Notifications You must be signed in to change notification settings

Tirtstan/Tweening-Components

Repository files navigation

Tweening Components

Powered by DOTween. Tweening Components is a package that provides a set of preset components to animate UGUI in Unity with scriptable objects.

Installation

Dependencies

  • TextMeshPro
  • DOTween

Set Up DOTween

In your Unity project, install DOTween.

Important

Create an Assembly Definition for DOTween.

arrow pointing to Create Assembly Definition for DOTween in the set up window.

Installing Tweening Components

Install the package from a git URL...

https://github.com/Tirtstan/Tweening-Components.git

dropdown in the Unity packages manager for adding a package by git URL.

Usage

  1. Add a TweenOnEvent component to you desired object:

Adding a TweenOnEvent component to a desired game object.

  1. Create a Tween profile:

Creating a scriptable object tween profile through the project create context menu.

  1. Edit the Tween profile to your desired liking:

inspector view of the created tween profile.

  1. Edit the TweenOnEvent component with all references and desired configurations:

inspector view of the previously added TweenOnEvent with its necessary references.

Done!

Note

Certain fields on the profiles like target and factor will not affect the tween depending on the chosen mode.

About

Powered by DOTween. Tweening Components is a package that provides a set of preset components to animate UGUI in Unity with scriptable objects.

Topics

Resources

License

Stars

Watchers

Forks

Languages