Bro! Very Wonderful Video. Please make videos like this. Until now my favorite youtuber for game development is Brackeys, But you can be my NO#1 if you post more videos like this on your channel.
the code in your website (for this tutorial) is a bit messy and doesnt work, so heres a fixed version of it. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cutscene : MonoBehaviour { public bool cutscene1played = false; public GameObject PlayerCam; public GameObject cutscene1Cam; void Start(){ PlayerCam.SetActive(true); cutscene1Cam.SetActive(false); } void OnTriggerEnter(Collider other) { if(other.gameObject.name=="cutscene1"&&cutscene1played==false){ cutscene1played=true; PlayerCam.SetActive(false); cutscene1Cam.SetActive(true); Invoke("SwitchToPlayerCam",20f); } } void SwitchToPlayerCam(){ PlayerCam.SetActive(true); cutscene1Cam.SetActive(false); } }
Bro! Very Wonderful Video. Please make videos like this. Until now my favorite youtuber for game development is Brackeys, But you can be my NO#1 if you post more videos like this on your channel.
This is exactly what I needed. Thank you!
THANKS! Clear and Simple and it WORKED -- many thanks
Works... tried it on my project... thanks 10000000000000000000000000000000000000
Was finding a video like this thnx
salamat pre
Bro can we add a fade in and fade out effect
For the cutscene? You would need to add a plane or UI image with a transparency C# script on it, and have a transparency material on the GameObject.
@@pixelxgames330 bro pls make a video on that pls
Yeah sure, it’ll be out in a few days I guess.
I made a video on it, so I hope that helps you out.
@@pixelxgames330 You are the best!
This doesn't work :'( Maybe because I'm using cinemachine? I tried it with all components though!
Perfect! For my game, I have a lot of cutscenes to be made and triggered, and this tutorial is great.
You're Awesome
Thank you so much (in writing this knowing that you Will never see this comment, but anyway Tank YOU!)
the code in your website (for this tutorial) is a bit messy and doesnt work, so heres a fixed version of it.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Cutscene : MonoBehaviour
{
public bool cutscene1played = false;
public GameObject PlayerCam;
public GameObject cutscene1Cam;
void Start(){
PlayerCam.SetActive(true);
cutscene1Cam.SetActive(false);
}
void OnTriggerEnter(Collider other) {
if(other.gameObject.name=="cutscene1"&&cutscene1played==false){
cutscene1played=true;
PlayerCam.SetActive(false);
cutscene1Cam.SetActive(true);
Invoke("SwitchToPlayerCam",20f);
}
}
void SwitchToPlayerCam(){
PlayerCam.SetActive(true);
cutscene1Cam.SetActive(false);
}
}