Answers for "rotation to position unity"

C#
2

how to rotation in something in unity

public Transform t;

transform.rotation = Quaternion.Eular(x,y,z);
Posted by: Guest on June-07-2021
1

how to chagne rotation in unity

transform.eulerAngles = new Vector3(0f, 180f, 0f); // rotates 180 degrees
Posted by: Guest on February-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language