Unity 3D Tutorial: Activating Cut-scene Videos Using Triggers

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 17

  • @ZeroOneSekai
    @ZeroOneSekai Год назад +1

    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.

  • @IlLupoAC
    @IlLupoAC 2 года назад +1

    This is exactly what I needed. Thank you!

  • @bobwinberry
    @bobwinberry 2 года назад

    THANKS! Clear and Simple and it WORKED -- many thanks

  • @shubhammukherjee2405
    @shubhammukherjee2405 3 года назад

    Works... tried it on my project... thanks 10000000000000000000000000000000000000

  • @KenScepter
    @KenScepter 3 года назад +1

    Was finding a video like this thnx

  • @HaZzy_0924
    @HaZzy_0924 Год назад

    salamat pre

  • @kartiksharma3803
    @kartiksharma3803 4 года назад +1

    Bro can we add a fade in and fade out effect

    • @pixelxgames330
      @pixelxgames330  4 года назад +1

      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.

    • @kartiksharma3803
      @kartiksharma3803 4 года назад

      @@pixelxgames330 bro pls make a video on that pls

    • @pixelxgames330
      @pixelxgames330  4 года назад

      Yeah sure, it’ll be out in a few days I guess.

    • @pixelxgames330
      @pixelxgames330  4 года назад +3

      I made a video on it, so I hope that helps you out.

    • @wouteroomen7318
      @wouteroomen7318 3 года назад +1

      @@pixelxgames330 You are the best!

  • @fatpenguinstudio
    @fatpenguinstudio 2 года назад

    This doesn't work :'( Maybe because I'm using cinemachine? I tried it with all components though!

  • @meehdrescher
    @meehdrescher 3 года назад +1

    Perfect! For my game, I have a lot of cutscenes to be made and triggered, and this tutorial is great.

  • @indiestudio23
    @indiestudio23 Год назад

    You're Awesome

  • @UnionAgnaistToxic14311
    @UnionAgnaistToxic14311 Год назад

    Thank you so much (in writing this knowing that you Will never see this comment, but anyway Tank YOU!)

  • @mr1professor893
    @mr1professor893 2 года назад +1

    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);
    }
    }