HOW TO START A CUTSCENE FROM A TRIGGER WITH C# IN UNITY TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • In this Mini Unity Tutorial we learn how we can trigger a cutscene to begin with C#.
    ✦ Subscribe: bit.ly/JimmyVeg...
    ✦ Patreon: / jimmyvegas
    ✦ FREE Assets: jvunity.com/
    ✦ Facebook: / jimmyvegas3d
    ✦ Twitter: / jimmyvegas17
    -----------------------------------
    ✦ Start your game development career today in Unity 2017 - Unity 2018.1 and even Unity 2020 and learn how to make a game through the power of Unity. Every Unity Tutorial at JV Unity costs NOTHING from you, and any support received through RUclips, Patreon or Facebook is greatly appreciated.
    -----------------------------------
    -----------------
    Who Is Jimmy Vegas?
    -----------------
    Jimmy Vegas is one of the top RUclips tutorial developers. In depth Unity Tutorials teaching you how to make a game in unity 3d! My unity tutorials include development, programming in C#, coding logic and more. For beginners, it's easy how to learn unity with tips and tricks you can make a game for FREE. I provide FREE assets for you to use and learn.
    Start your game development career today, for free. #JIMMYVEGAS #UnityTutorial #UnityTutorialForBeginners

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

  • @zig8925
    @zig8925 4 года назад +13

    Thank you SO much for taking the extra time to show the coroutine! saved me time, and taught me about coroutines, i didn't really understand them before.

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

    Thank you very much for this! It took me 4 hrs just to do something exactly like this, you're a life saver!

  • @JonJonGames
    @JonJonGames 5 лет назад +4

    Been looking for this particular tutorial. Thanks jimmy.

  • @FitGlamLifestyle
    @FitGlamLifestyle 5 лет назад +8

    LOVE IT!! thank you.- I got 2 questions for you as a newbie.-
    First one of all.
    Im making a 3d app-
    Before playing the character , I want it to show from overview (top of map) for 10 seconds to see where you are going to win)
    and then the camera goes into the characters eyes ? how is that done ?? - same way you showed ??
    2 question.- If i make high quality characters & buildings in blender, like A Class characters etc, would they keep that quality as i made in blender, to unity or ???
    I know they would in unreal engine but unreal engine is too hard for me, but would they have it in UNITY ??

    • @jhosuarodriguez8243
      @jhosuarodriguez8243 5 лет назад +1

      To be honest the first question I have no idea but to answer your second question you may need some tweaking because It never comes out looking the same as it did in blender on unity.

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

      I may be wrong but if you were to set two separate cameras, one for the first part of it and the second to be triggered when the first cutscene end which is positioned right at e players eyes. Hope this helps!

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

    Just what I needed thanks!!!

  • @walterpalladino1965
    @walterpalladino1965 5 лет назад +19

    Only one thought, maybe could be of use to disable the object with the trigger once the coroutine ends.

  • @VigoClips
    @VigoClips 4 месяца назад

    It's Really help me thx Jimmy !

  • @Mikelica69
    @Mikelica69 4 года назад +2

    THANK YOU

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

    This worked perfectly thanks.

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

    Thank you for this code! Very thanks!

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

    thx so much

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

    legend

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

    holy heck this is insane tysm man

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

    thx so much you cant believe how helpfull this is

  • @incernpakistan
    @incernpakistan 5 лет назад +2

    you are great

  • @mosmo618
    @mosmo618 5 лет назад

    Jimmy keep up the good work : -)

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

    what if we just destroy the cutscene invisible cube after that 10 sec ,cutscene cant play ?

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

    Thank you so much!!!!!!

  • @gg-ti6or
    @gg-ti6or Год назад

    very cool

  • @spiderinvr6303
    @spiderinvr6303 2 года назад +6

    I have a question: how do you make it so that when the cutscene ends the player ends up where the cutscene ended?

    • @Dino-tr6cn
      @Dino-tr6cn 2 года назад +2

      Change scene or destory and instantiate

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

      @@Dino-tr6cn thanks,

  • @chakibchemso
    @chakibchemso 5 лет назад +13

    6:07 hhhhhh let's do it now

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

    can you do a tutorial on how to do motion video cutscenes like they did on command and conquer, Dune, Riven. No one has tutorials on motion video cutscenes.

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

    how would i change it to a already made video

  • @th0us1f
    @th0us1f 4 месяца назад

    hey i have a video cutscene how to implement that

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

    this was just what I was looking for, thank you so much!
    Does anyone know how to add text in between the cutscene that disappears as the cutscene ends? Trying to add a dialogue cutscene into my project

    • @12Acorns
      @12Acorns 2 года назад

      If it’s the normal unity text, have a blank text on a canvas, next you would write text = “what you want here”; (once you define what your text is). If it’s text mesh pro it’s a bit different but similar concept, you’d define your text mesh pro text, then put whateveritsdefinedas.text = “whatever”;. And if you wanted to get your text from a txt document it’s a lot harder but nice once it’s done. And for disappearing just disable the text or just set the text as a space.

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

      @@12Acorns hi i wanted to add one
      public float WaitForSeconds;
      to change the seconds without having to enter the scripts.
      Can someone help me

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

    Bro how to set up cameracam?

  • @2.5dboy20
    @2.5dboy20 4 года назад +4

    How did you made the cut scenes? And can I add music to it?

    • @scrub2657
      @scrub2657 4 года назад +4

      better late then never,
      It looks like he just animated a camera and the animation automatically plays "on awake" (when the object (camera) is activated), then he disables the camera after x amount of seconds.

    • @2.5dboy20
      @2.5dboy20 4 года назад +3

      @@scrub2657 thanks

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

    How can I add a skip mechanic so I can skip the cutscene?

  • @alexanderthegreat7462
    @alexanderthegreat7462 4 года назад +2

    I wrote the whole script and vs code shows a error under FinishCut,:
    Severity Code Description Project File Line Suppression State
    Error CS1503 Argument 1: cannot convert from 'System.Collections.IEnumerable' to 'string' Assembly-CSharp C:\Users\Mihailo The Great\fps\Assets\CutsceneController.cs 16 Active
    can you help me?

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

      ik this is late lol but i think you typed "IEnumerable" instead of "IEnumerator", i almost made the same mistake

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

    hi i wanted to add one
    public float WaitForSeconds;
    to change the seconds without having to enter the scripts.
    Can someone help me

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

    the start of cutscene worked but not the exit camera

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

    how to make the box collider disappear after the cutscene?

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

      turn the collider component off as soon as it's triggered

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

      @@JimmyVegasUnityok thanks bro, You are a youtuber who replies to me quickly

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

    How can do like a timer after like entering and after the cutscene make the next scene happen

  • @snage-thesnakemage
    @snage-thesnakemage 3 года назад

    ok but what makes it always start the cutscene at the beginning like does setting a camera to active make it start at the beginning of its animation?

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

    Bruh I have a doubt can i link this with timline and if I can then how can anyone help me pls???

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

    How do I switch between third person and first person using that trigger instead of cut scenes?

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

      already done a tutorial on switching. combine the two tutorials

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

    how do i do that if i approach two walls, it appears to press the key to enter and then the cutscene with the animation starts?

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

    Made the same with a text that appears when you pick up a key and the text doesn't vanish after the number of seconds I said, help

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

    Everything works for me up until the second half. It reads error CS1061 & says it doesn’t contain a definition for ‘gameObject’ even though I followed all the steps exactly

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

      The tutorial is great I’m just having trouble figuring out what’s missing in my code

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

      Paste your entire script here

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

      It is because you wrote "gameObject" which is wrong it should be " GameObject" the "G" should be capital.

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

    I was just about to ask how do you do the coroutine?? Lmaoo

  • @3po_Orisen_Sithappen
    @3po_Orisen_Sithappen 4 года назад

    k this is good but what if i just want to disable a script on my object and not the hole prefab object lets say i have a script needs to be disabled and enabled on trigger enter how can we do that pls help wood be much appreciated there is nothing out there for this maybe wood be a cool tutorial content what you say cool ty and have a good day all

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

      easy, you use: .GetComponent().enabled = false; :)

  • @DiegoOliveiraProf
    @DiegoOliveiraProf 5 лет назад +6

    how to record a cutscene ? :)

  • @doggo7607
    @doggo7607 5 лет назад

    I love you

  • @GoodVibes-bw4nz
    @GoodVibes-bw4nz 3 года назад

    I subscribed to you can you teach me how to go about making
    My own game?? Do you have any contact info very serious!!