Skip to content

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

Answered by jeffreylanters
jane00 asked this question in Q&A
Discussion options

You must be logged in to vote

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);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jane00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #33 on December 05, 2022 09:18.