Resident Evil Style Camera Switching in Unity | Unity Tutorial
In this Unity tutorial, I teach you guys how to do Resident Evil style camera switching in Unity, just like in the old, classic RE games. This is an easy tutorial as well.
#Unity #Unity3D #ResidentEvil
For more Unity tutorials or more videos in general - be sure to like, comment, and subscribe for more! π
Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class camChange : MonoBehaviour
{
public GameObject camold, camnew;
void OnTriggerEnter(Collider other){
if(other.CompareTag("Player")){
camold.SetActive(false);
camnew.SetActive(true);
}
}
}
Follow me on Twitter:
https://twitter.com/omogonix
Try out my games:
https://omogonixlachlan.itch.io
Forgehub:
https://www.forgehub.com/members/omogonix.87700/
Subscribe to my Second Channel:
https://www.youtube.com/channel/UCkylkvUtpvbHfafGfIdMLBQ/featured
Join my Discord:
https://discord.gg/a88vmGD
Facebook Page:
https://www.facebook.com/Omogonix/
Follow me on Instagram:
https://www.instagram.com/uwugonixhalo/