Trigger Zones - Unity Quick Tip

  Рет қаралды 16,407

passivestar

passivestar

Жыл бұрын

A quick tip on making simple triggers with unity events
Follow me on twitter: / passivestar_
Join our Discord: / discord

Пікірлер: 27
@krissosful
@krissosful Жыл бұрын
Awesome tutorial and nice interior result, keep going👏👏
@artdesireboutique
@artdesireboutique Ай бұрын
I have spent hours watch YT vids, trying to get interactions working, but finally you have a solution that works! Many thanks.
@hermionegreen333
@hermionegreen333 3 ай бұрын
quick and super informative thank you!
@HxsrzStudio
@HxsrzStudio Жыл бұрын
bro your videos, are super helpful
@elrovlez6440
@elrovlez6440 Ай бұрын
Great video! Thanks for sharing.
@AetherXIV
@AetherXIV Жыл бұрын
I don't know how you are so good at blender and coding. nice
@Takhooo
@Takhooo Жыл бұрын
YOU GOTTA MAKE MORE YOU THE GOAT
@hamishdelaforce1048
@hamishdelaforce1048 28 күн бұрын
this helped alot thanks :)
@juliestrator
@juliestrator Жыл бұрын
Now I know how to trigger anyone, thanks :)
@Nico.desb7
@Nico.desb7 4 ай бұрын
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.
@TheNSproject
@TheNSproject 9 ай бұрын
Thank you so much for your video! Do you have a tuto to show a trigger by clicking the object?
@Low_Fidelity_3D
@Low_Fidelity_3D 9 ай бұрын
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?
@damnthishandleistaken
@damnthishandleistaken Жыл бұрын
Can you make a tutorial on weapon animations next?
@romeo774
@romeo774 Ай бұрын
for some reason when i use the destroy after enter feature my sound no longer plays at all. any fix?
@torontogamestudio2991
@torontogamestudio2991 7 ай бұрын
Game Changer. Pun Intended
@0pix.ziplock
@0pix.ziplock Ай бұрын
how to do this with animation?Help please(
@derRattenfaenger187
@derRattenfaenger187 Ай бұрын
@oliver_rocks80
@oliver_rocks80 4 ай бұрын
Jump scare warning 1:44 😱
@1playfair
@1playfair 7 ай бұрын
Guessing this won’t work in 2019.4.40f1 where my game lives 😅
@torontogamestudio2991
@torontogamestudio2991 7 ай бұрын
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
@lucutes2936 2 ай бұрын
creepy
@dazimbsdoc69
@dazimbsdoc69 5 ай бұрын
this is too fast i cant keep even with pausing like at exactly 0:18 you'll see what im talking about.
@setik1337
@setik1337 3 ай бұрын
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
@y0utubemakesmewantto 3 ай бұрын
🙏🙏🙏🙏
@lariusvance7272
@lariusvance7272 3 ай бұрын
🙏🙏🙏🙏
@firstpeoplegovernment
@firstpeoplegovernment Ай бұрын
@CollyIsEpic
@CollyIsEpic Ай бұрын
🙏🙏🙏🙏
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 292 М.
Why Solo Developers Should Use Unreal
10:55
Thomas Brush
Рет қаралды 331 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 25 МЛН
Playing Animation on Trigger in Unity
9:04
SpeedTutor
Рет қаралды 157 М.
Unity  Beginner Tutorial : Triggers
6:49
Jayanam
Рет қаралды 77 М.
Cutscene in Unity 3D | Timeline in Unity | CG Aura
14:13
CG AURA
Рет қаралды 132 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 515 М.
Climbing Ladders - Unity Tutorial
3:55
passivestar
Рет қаралды 9 М.
Unity 3D Collisions, Colliders, & Hitboxes (In 3 Minutes!!)
3:00
Royal Skies
Рет қаралды 135 М.
Why I’m switching from Unity to Unreal Engine
9:02
LixianTV
Рет қаралды 1 МЛН
5 Minute DIALOGUE SYSTEM in UNITY Tutorial
5:11
BMo
Рет қаралды 152 М.
UNITY | THIRD PERSON CHARACTER CONTROLLER - STARTER ASSETS
8:24
AverageGnomeEater
Рет қаралды 6 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 8 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 4,8 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 7 МЛН