Can I tween any public property of any MonoScripts instead of modify the tween lib? #35
-
Can I tween any public property of any MonoScripts instead of modify the tween lib? |
Beta Was this translation helpful? Give feedback.
Answered by
jeffreylanters
Dec 5, 2022
Replies: 1 comment
-
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); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jane00
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Yes, this can be done by using the TweenValue methods such as the TweenValueFloat and TweenValueVector3 methods.