Unity Change Rotation

[Solved] Unity Change Rotation | Csharp - Code Explorer | yomemimo.com
Question : unity how to change rotation

Answered by : relieved-raccoon-5uhvkl4hm5bf

transform.eulerAngles = new Vector3(0f, 180f, 0f); //rotates 180 degrees

Source : | Last Update : Mon, 02 Mar 20

Question : how to change rotate with script unity

Answered by : powerful-porpoise-clz1t4of4d0u

var rotationVector = transform.rotation.eulerAngles;
rotationVector.z = 0; //this number is the degree of rotation around Z Axis
transform.rotation = Quaternion.Euler(rotationVector);
//if you put this in a coroutine and yielding for some amount of time
//you can have something like a rotating loading icon

Source : | Last Update : Sun, 26 Apr 20

Question : how to chagne rotation in unity

Answered by : relieved-raccoon-5uhvkl4hm5bf

transform.eulerAngles = new Vector3(0f, 180f, 0f); // rotates 180 degrees

Source : | Last Update : Mon, 02 Mar 20

Answers related to unity change rotation

Code Explorer Popular Question For Csharp