Unity writes a code that automatically stretches the y-axis of an object to 3 meters.

You can use Unity's Transform.Scale to implement your function. This function can control the size of the object on the x, y and z axes. You can use parameters 3, 0, 0 to set the y axis to automatically stretch to 3 meters: Transform.Scale(3, 0, 0);

Guess you like

Origin blog.csdn.net/weixin_42576410/article/details/129511577