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
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.
Thank you very much for this! It took me 4 hrs just to do something exactly like this, you're a life saver!
same bro
Been looking for this particular tutorial. Thanks jimmy.
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 ??
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.
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!
Just what I needed thanks!!!
Only one thought, maybe could be of use to disable the object with the trigger once the coroutine ends.
It's Really help me thx Jimmy !
THANK YOU
This worked perfectly thanks.
Thank you for this code! Very thanks!
thx so much
legend
holy heck this is insane tysm man
thx so much you cant believe how helpfull this is
you are great
Jimmy keep up the good work : -)
what if we just destroy the cutscene invisible cube after that 10 sec ,cutscene cant play ?
Thank you so much!!!!!!
very cool
I have a question: how do you make it so that when the cutscene ends the player ends up where the cutscene ended?
Change scene or destory and instantiate
@@Dino-tr6cn thanks,
6:07 hhhhhh let's do it now
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.
it’s not something you do in Unity.
how would i change it to a already made video
hey i have a video cutscene how to implement that
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
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.
@@12Acorns hi i wanted to add one
public float WaitForSeconds;
to change the seconds without having to enter the scripts.
Can someone help me
Bro how to set up cameracam?
How did you made the cut scenes? And can I add music to it?
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.
@@scrub2657 thanks
How can I add a skip mechanic so I can skip the cutscene?
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?
ik this is late lol but i think you typed "IEnumerable" instead of "IEnumerator", i almost made the same mistake
hi i wanted to add one
public float WaitForSeconds;
to change the seconds without having to enter the scripts.
Can someone help me
the start of cutscene worked but not the exit camera
how to make the box collider disappear after the cutscene?
turn the collider component off as soon as it's triggered
@@JimmyVegasUnityok thanks bro, You are a youtuber who replies to me quickly
How can do like a timer after like entering and after the cutscene make the next scene happen
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?
The animation starts at the beginning
Bruh I have a doubt can i link this with timline and if I can then how can anyone help me pls???
How do I switch between third person and first person using that trigger instead of cut scenes?
already done a tutorial on switching. combine the two tutorials
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?
use an if(Input.GetKeyDown("your key here"))
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
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
The tutorial is great I’m just having trouble figuring out what’s missing in my code
Paste your entire script here
It is because you wrote "gameObject" which is wrong it should be " GameObject" the "G" should be capital.
I was just about to ask how do you do the coroutine?? Lmaoo
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
easy, you use: .GetComponent().enabled = false; :)
how to record a cutscene ? :)
Create it in Unity, record with OBS :)
@@JimmyVegasUnity Thank you Jimmy :)
I love you
I subscribed to you can you teach me how to go about making
My own game?? Do you have any contact info very serious!!
follow a tutorial series