Тёмный

Trigger Zones - Unity Quick Tip 

Подписаться
Просмотров 16 тыс.
% 463

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

Наука

Опубликовано:

 

4 фев 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@artdesireboutique
@artdesireboutique 28 дней назад
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!
@krissosful
@krissosful Год назад
Awesome tutorial and nice interior result, keep going👏👏
@hamishdelaforce1048
@hamishdelaforce1048 26 дней назад
this helped alot thanks :)
@Takhooo
@Takhooo Год назад
YOU GOTTA MAKE MORE YOU THE GOAT
@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
@juliestrator
@juliestrator Год назад
Now I know how to trigger anyone, thanks :)
@TheNSproject
@TheNSproject 9 месяцев назад
Thank you so much for your video! Do you have a tuto to show a trigger by clicking the object?
@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.
@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?
@romeo774
@romeo774 Месяц назад
for some reason when i use the destroy after enter feature my sound no longer plays at all. any fix?
@damnthishandleistaken
@damnthishandleistaken Год назад
Can you make a tutorial on weapon animations next?
@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 😱
@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
@1playfair
@1playfair 7 месяцев назад
Guessing this won’t work in 2019.4.40f1 where my game lives 😅
@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 Месяц назад
🙏🙏🙏🙏