johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

Allow target Transform for iTweenEvent #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
An iTweenEvent always acts on the Transform the Component is attached to.  This 
is fine in most cases, but it would be nice to have a 'targettransform' option 
that, when not-null, causes the iTweenEvent to act on the linked object 
instead.  This would allow two things:
-The user could organize iTweenEvents in a centralized place, for instance when 
writing editor functions to wrap around iTween
-Apply a tween to different objects at runtime, e.g. based on user selection, 
without having to clone the component and manage multiple copies

Original issue reported on code.google.com by jul...@fragileearthstudios.com on 6 Jun 2012 at 8:16