Answers for "set rotation unity c# with value"

C#
7

unity how to change rotation

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

add rotation unity c#

Vector3 newRotation = new Vector3(0, 10, 0);
transform.eulerAngles = newRotation;
Posted by: Guest on October-16-2021

C# Answers by Framework

Browse Popular Code Answers by Language