Hello everyone,
I am using this code to switch between 2 Cameras:
public class P1ToCam : MonoBehaviour
{
public GameObject P1Cam;
public GameObject Cam;
void OnTriggerEnter()
{
P1Cam.SetActive(false);
Cam.SetActive(true);
Cam.transform.position = P1Cam.transform.position;
Cam.transform.rotation = P1Cam.transform.rotation;
}
}
And everything is working as expected, except there is a very small glitch (few frame skips which is noticeable) while switching. Please help me on making this camera switch completely unnoticeable.