transform.rotate unity' code example
Example 1: how to rotate object unity
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);
Example 2: transform.rotation
transform.eulerAngles = new Vector3(0, 0, 180);
transform.localEulerAngles = new Vector3(0, 0, 180);
transform.eulerAngles = new Vector3(0, 0, 180);
transform.localRotation = Quaternion
transform.rotation = Quaternion.Euler(0, 0, 90);