Тёмный

The Basics of OnTriggerEnter, OnTriggerStay, & OnTriggerExit in Unity C# 

Omogonix
Подписаться 8 тыс.
Просмотров 2,5 тыс.
50% 1

In this Unity C# tutorial, I teach you guys the basics of the OnTriggerEnter, OnTriggerStay, and OnTriggerExit voids.
#Unity #Unity3D #gamedev
Example script will be in pinned comment.
For more Unity tutorials like this or more videos in general - be sure to like, comment, and subscribe for more! 👍
Play Mooshie's Kitchen 2:
omogonixlachlan.itch.io/moosh...
Wishlist Bodhi 'n' Friends on Steam now:
store.steampowered.com/app/22...
Follow me on Twitter:
/ omogonix
Try out my games:
omogonixlachlan.itch.io
My Website:
omogonix.weebly.com/
Subscribe to my Second Channel:
/ @lachlanshelton129
Join my Discord:
/ discord
Facebook Page:
/ omogonix

Хобби

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

 

3 апр 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@Omogonix
@Omogonix Год назад
Example script I made for the video: using System.Collections; using System.Collections.Generic; using UnityEngine; public class onTrigger : MonoBehaviour { void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { Debug.Log("entered trigger"); } } void OnTriggerStay(Collider other) { if (other.CompareTag("Player")) { Debug.Log("staying in trigger"); } } void OnTriggerExit(Collider other) { if (other.CompareTag("Player")) { Debug.Log("exited trigger"); } } }
@Pavel-ju6xv
@Pavel-ju6xv Год назад
That’s a good tutorial,i think you should make a c# tutorial series for beginner Because your c# script is not complicated than any Unity tutorial videos so i suggested that :)
@Alex_xx-lg7cj
@Alex_xx-lg7cj Год назад
You can make a climbing Ladders system???
@Omogonix
@Omogonix Год назад
If I can remember some day haha, that is a good idea for a tutorial though!
@kingiwakes_official
@kingiwakes_official Год назад
Is there going to be a tutorial of for the gun you can shoot the ground to get extra hight
@gmangman123
@gmangman123 Год назад
thx my friend!
@SunilSingh-kj4gd
@SunilSingh-kj4gd Год назад
Nice tutorial with voice.
Далее
Unity Game Dev - Why I Wrote My Own Object Pool Manager
16:57
Rigidbody in Unity - Everything You Need to Know
9:03
The Power of Scriptable Objects as Middle-Men
17:41
Просмотров 121 тыс.
Adding an AI Monster to my Horror Game - Devlog #2
7:43
These Roblox Players Just Got Their PC's Hacked...
10:38
Learn C# with these 9 LINES OF CODE - Unity Tutorial!
25:16
ОБЛИЛА водой на ТАТУ СЕАНСЕ
0:29
Сыграл на опережение #юмор
0:20
ВЫХЛОП на РЕДКИЙ VAG #shorts
0:49
Просмотров 1,3 млн