- Home /
How can I prevent iTween from scaling my object to 0 when using ScaleTo method?
I am trying to scale my object to a vector of 8, 8, 8 and then back down to a vector of 1, 1, 1. For some reason, as soon as the script runs the object scales itself down to 0, 0, 0, and it doesn't change its scale at all after that. Here is the code that I am using. Thanks!
void Update()
{
if (lefthand.transform.rotation.z >= 140 && lefthand.transform.rotation.z <= 200)
{
iTween.ScaleTo(movement, menu2, 2);
}
else if (lefthand.transform.rotation.z < 140 || lefthand.transform.rotation.z > 200)
{
iTween.ScaleTo(movement, menu1, 2);
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612075900im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
itweenpath scale and position 0 Answers
iTween ScaleTo + gravity == halting falling motion 0 Answers
iTween scaling animation childed to hte camera in a FPS game... 0 Answers
How I can change the scale of my CharacterConroller in runtime? 2 Answers
How can I scale and move a game object simultaneously using iTween? 0 Answers