Can someone give me an example script on how to change the scale and rotation for all coordinates (x,y,z) of this transform?
GameObject test1clone = Instantiate(test1, transform.position, Quaternion.identity) as GameObject;
Can someone give me an example script on how to change the scale and rotation for all coordinates (x,y,z) of this transform?
GameObject test1clone = Instantiate(test1, transform.position, Quaternion.identity) as GameObject;
Hey there, welcome to Unity.
in your example, you’d use the transform of test1clone.
test1clone.transform.localScale = new Vector3(1,2,1); // for example
// or for rotation (this is just 1 example of a way)
test1clone.transform.rotation = Quaternion.Euler(30,0,30); // whatever rotation.
Check out this section to familiarize yourself with Unity: Learn
![]()