Answers for "how to assign rotation in unity"

C#
1

add rotation unity c#

Vector3 newRotation = new Vector3(0, 10, 0);
transform.eulerAngles = newRotation;
Posted by: Guest on October-16-2021
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

C# Answers by Framework

Browse Popular Code Answers by Language