Skip to content

Commit e68670f

Browse files
committed
README
1 parent 62afe1d commit e68670f

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
# TweenSharp
1+
Tween#
2+
3+
### What is Tween# ?
4+
Tween# (TweenSharp) is a tweening library for C# / Unity with an interface inspired by Greensocks TweenMax.
5+
6+
### Why to write another tweeling library?
7+
I've used ActionScript / Flash for several years, and I'm moving to Unity / C# now. TweenMax is very ease to use and nice to work with, while still being very powerfull if needed. I've found the existing tweening libraries for C# tedious to work with ... they often require several lines of code where Tween# only needs one line. Which bring us to the next section:
8+
9+
### Example
10+
You want move an object along x- and y-coordinates while fading alpha to 0 using a Quad ease? Ease over 5 seconds? Ease, just do this:
11+
12+
TweenSharp tween = new TweenSharp(gameObject, 5f, new Dictionary<string, object>()
13+
{
14+
{"x", (object)8f},
15+
{"y", (object)-5f},
16+
{"alpha", (object)0f},
17+
{"ease", Quad.EaseOut}
18+
} );
19+
20+
Tween# of course supports many more features:
21+
22+
### Features
23+
- Tween any float property on any object
24+
- All important ease functions are included (from simple one like Linear and Quad to more complex ones like Bounce and Elastic)
25+
- Plugin support for properties. x,y and alpha in the example mentioned above are handled by plugins.
26+
- Autodetection of object type. If necessary, those plugins use the RectTransform of the object instead of the Transform.
27+
- onComplete and onUpdate with and without parameters are supported
28+
- You can easily control the tween with propertied and methods like "paused", "reverted", "Progress" and "Restart".
29+
- Use "DelayedCall" for delayed execution of methods.
30+
31+
### How to Use
32+
Just download with git or as a ZIP and included all files in your project. Add TSScheduler.cs to any GameObject in the scene and you're all setup.

0 commit comments

Comments
 (0)