Skip to content
Utility classes for working with Unity 3D
C#
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
Scene.cs
Tweener.cs

README.md

UnityUtils

Utility classes for working with Unity 3D and the Futile library

Copyright 2012 by Javier Arevalo

Sorry the docs are not the best yet :)

Tweener.cs

Easy animation and interpolation of parameters for arbitrary Futile Nodes.

Quick examples:

TweenerManager t;
t.Add(new Tweener(mySprite)
      .sawSx(0.5f, 1.0f).offSx(0.3f).fnSx(Tweener.IntSlow)
      .pongSy(0.5f, 2.0f));
t.Add(new Tweener(myLabel)
      .Fn(Tweener.IntParab)
      .pongRot(45.0f, 1.0f).srcRot(-45.0f).offRot(0.25f)
      .Y(100.0f, 5.0f)
      .sawAlpha(0.0f, 1.0f).fnAlpha(Tweener.Hump));
t.Add(new Tweener(myLabel).Fn(bumpFn).S(1.0f, 1.0f, 0.5f).srcS(0).off(-1.0f));
t.Add(new Tweener(myButton).Fn(bumpFn).Pos(0.0f, -40.0f, 0.5f).srcY(-80.0f));

Tracking a group of tweens

if (t.Update(Time.deltaTime)) {
    <<regular tweens finished>>;
}

Finding and removing

t.Remove(t.Find(myLabel));

Scene.cs

More or less classic Scene Manager (a stack of UI screens and overall game flow) with built-in support for Tweener. Still work in progress...

Something went wrong with that request. Please try again.