jeffreylanters / unity-tweens

An extremely light weight, extendable and customisable tweening engine made for strictly typed script-based animations for user-interfaces and world-space objects optimised for all platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I tween any public property of any MonoScripts instead of modify the tween lib?

jane00 opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Hi! Yes, this can be done by using the TweenValue methods such as the TweenValueFloat and TweenValueVector3 methods.

// Tween a float from its current value to 100.
myMonobehaviour.TweenValueFloat (100, 1, (v) => {
  myMonobehaviour.myParam = v;
}).SetFrom(myMonobehaviour.myParam);