How to modify the scale of a Sphere? I have a sphere(a ball)and when it goes through something it teleports to another place.I managed to make the sphere go the place I want but I also want to modify it’s scale.
Using sphere.transform.scale.x = ;
sphere.transform.scale.y = ;
sphere.transform.scale.z = ; it doesn’t work.
Thank you.
Read the manual: Unity - Scripting API: Transform.localScale
// Widen the object by 0.1
transform.localScale += Vector3(0.1,0,0);
for example