Hi there,
I want to change the Buttons scale in two ways in different situations. For one way it works fine:
//when I start the menu
//position changes aswell
TweenScale tweenS = prefab.GetComponent<TweenScale>();
tweenS.from = Vector3.zero;
tweenS.to = Vector3.one; <-----why Vector3(1,1,1) instead leads to an error? how to fix it?
tweenS.PlayForward();
The Problem is, that I need to change the values to Vector3(1.5, 1.5, 1.5) for the next way. The Unity API says that Vector3.one is just a short version of Vector3(1,1,1). I'm confused.
Thanks for help and have a good day. Marten