Thank you very very much, this is quite a fundamental tip for many critical uses in Unity and should be taught as such in the software basics 🙏
@juliestrator
Жыл бұрын
Now I know how to trigger anyone, thanks :)
@Takhooo
Жыл бұрын
YOU GOTTA MAKE MORE YOU THE GOAT
@setik1337
6 ай бұрын
Full script: using System; using UnityEngine; using UnityEngine.Events; public class Trigger : MonoBehaviour { [SerializeField] bool destroyOnTriggerEnter; [SerializeField] string tagFilter; [SerializeField] UnityEvent onTriggerEnter; [SerializeField] UnityEvent onTriggerExit; void OnTriggerEnter(Collider other) { if (!String.IsNullOrEmpty(tagFilter) && !other.gameObject.CompareTag(tagFilter)) return; onTriggerEnter.Invoke(); if (destroyOnTriggerEnter) { Destroy(gameObject); } } void OnTriggerExit(Collider other) { if (!String.IsNullOrEmpty(tagFilter) && !other.gameObject.CompareTag(tagFilter)) return; onTriggerExit.Invoke(); } }
@y0utubemakesmewantto
6 ай бұрын
🙏🙏🙏🙏
@lariusvance7272
5 ай бұрын
🙏🙏🙏🙏
@firstpeoplegovernment
4 ай бұрын
@CollyIsEpic
4 ай бұрын
🙏🙏🙏🙏
@hermionegreen333
6 ай бұрын
quick and super informative thank you!
@707_FAISAL
Ай бұрын
i have a Question how can i make trigger updated every single frame cuz i want make that if you on trigger & press button something happen
@Nico.desb7
6 ай бұрын
i get an error saying that the type "Trigger" already contains a definition for "OnTriggerExit". No clue how to solve it, probably because i have other scripts that override this one but i'm too new into coding to solve it for myself.
@NadeemM-f2v
Ай бұрын
You use onTriggerExit two times rather than using onTriggerEnter
@hamishdelaforce1048
3 ай бұрын
this helped alot thanks :)
@TheNSproject
11 ай бұрын
Thank you so much for your video! Do you have a tuto to show a trigger by clicking the object?
@romeo774
3 ай бұрын
for some reason when i use the destroy after enter feature my sound no longer plays at all. any fix?
@HxsrzStudio
Жыл бұрын
bro your videos, are super helpful
@0pix.ziplock
3 ай бұрын
how to do this with animation?Help please(
@damnthishandleistaken
Жыл бұрын
Can you make a tutorial on weapon animations next?
@torontogamestudio2991
9 ай бұрын
Game Changer. Pun Intended
@krissosful
Жыл бұрын
Awesome tutorial and nice interior result, keep going👏👏
@oliver_rocks80
6 ай бұрын
Jump scare warning 1:44 😱
@1playfair
9 ай бұрын
Guessing this won’t work in 2019.4.40f1 where my game lives 😅
@dazimbsdoc69
7 ай бұрын
this is too fast i cant keep even with pausing like at exactly 0:18 you'll see what im talking about.
@torontogamestudio2991
10 ай бұрын
Thank you so much, such a useful peice of code, But for the love of God can you please at least pause on the code for once second for me to copy lol
@lucutes2936
4 ай бұрын
creepy
@artdesireboutique
3 ай бұрын
I have spent hours watch YT vids, trying to get interactions working, but finally you have a solution that works! Many thanks.
@Low_Fidelity_3D
Жыл бұрын
been seeing you all over Godot twitter as of recent while you learn your way around the game engine. Do you think you may start making tutorials/ related videos covering it?
@elrovlez6440
3 ай бұрын
Great video! Thanks for sharing.
@AetherXIV
Жыл бұрын
I don't know how you are so good at blender and coding. nice
Пікірлер: 30