how to rotate camera using images unity code example
Example: unity rotate object relative to camera
transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward, Camera.main.transform.up);
transform.rotation = Quaternion.LookRotation(-Camera.main.transform.forward, Camera.main.transform.up);