So, i want to make a camera, Rotate in a room, not around an object. just rotating.
I have this room that i want the camera, to slowly rotate in. It might be simple, but im dumb af and i dnno how to make it.
Edit: in case of something, Im using version 2019.4.28f1.
Add a script to the Camera gameObject that does this:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamRotate : MonoBehaviour
{
public float speed = 10f;
// Update is called once per frame
void Update()
{
transform.Rotate(0,1f*speed*Time.timeScale,0);
}
}
⠀
Adjust speed in the inspector as needed