Home > other > UGUI canvas in the following the movement of the object
UGUI canvas in the following the movement of the object
Time:09-19
Everyone a great god, and how to make the canvas below several different positions of the image, when click on it to be able to realize from their own moves to the center of the screen
CodePudding user response:
And when she is able to achieve click move to the center position, the image appears on a back key, click back to the original position, and can realize the zoom in and out of animation effects
CodePudding user response:
Vector3. Lerp (Vector3 a, Vector3 b, float t);
CodePudding user response:
You can do this things in dotween plug-in, tween animation have an oncomplete callback in the callback also use dotween execution back to the original location of the animation, in the most began to move his record an original position. If it's not dotween can also in the update their writing animation as upstairs said with a vector3. Lerp method to Screen the middle Screen. The width/2, the Screen. The height/2
CodePudding user response:
How to control it's movement speed, using vector3. The lerp this method can control?