Answers for "unity camera rotate around object"

C#
21

how to rotate object unity

public Transform Position; // make reference in inspector

Position.Rotate(x, y, z);
Posted by: Guest on July-06-2020
0

unity rotate object relative to camera

transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward, Camera.main.transform.up);
Posted by: Guest on June-22-2020

C# Answers by Framework

Browse Popular Code Answers by Language