Skip to content

Allows you to easily create a transition, animation, lerp or timer. Позволяет легко создать переход, анимацию, лерп или таймер.

License

Notifications You must be signed in to change notification settings

error911/GalaxyTween

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GGTween

Allows you to easily create a transition, animation, lerp or timer.
Позволяет легко создать переход, анимацию, лерп или таймер.

Free license: CC BY Murnik Roman
Tested in Unity 2019.2.X +

Install from Unity Package Manager.

You can add https://github.com/error911/GalaxyTween.git?path=Assets/Plugins/GalaxyTween to Package Manager

image

Входит в состав набора инструментов GGTools. Рекомендуемое расположение в проекте:
Included in the GGTools Toolkit. Recommended location in the project:
Assets/GGTools/GGTween


Support types (Поддерживаемые типы)

  • Generic (any type of the following)
  • Int
  • Float
  • Vector2
  • Vector3
  • Vector4
  • Color
  • Quaternion

Usage example (Пимер использования)

using GGTools;
void Sample_1()
{
	var startPos = new Vector3(0,0,0);
	var endPos = new Vector3(3,6,0);
	Tween.TweenVector3((pos) => transform.position = pos, startPos, endPos, 1);
}

Animation Interruption Example (Пример прерывания процесса анимации)

using GGTools;
void Sample_2()
{
	int t = Tween.TweenFloat((x)=>Debug.Log(x), 0.0f, 1.0f, 5);
	// ...some code
	Tween.StopTween(t);
}

Animation Interruption Example (Задать нелинейность интерполяции)

using GGTools;
void Sample_3()
{
	Tween.TweenFloat((x)=>Debug.Log(x), 0.0f, 1.0f, 10, 0, null, false, TweenType.Bounce);
}

Animation completion events Example (События при завершении анимации)

using GGTools;
void Sample_4()
{
	Tween.TweenFloat((x)=>Debug.Log(x), 0.0f, 1.0f, 10, 0, TweenIsEnded, false, TweenType.Bounce);
	void TweenIsEnded()
        {
            Debug.Log("Completed");
        }
}

About

Allows you to easily create a transition, animation, lerp or timer. Позволяет легко создать переход, анимацию, лерп или таймер.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages