Тёмный

#10 | ENABLE/DISABLE COMPONENTS & GAMEOBJECTS 🎮 | Unity For Beginners | Unity Tutorial 

Dani Krossing
Подписаться 483 тыс.
Просмотров 40 тыс.
50% 1

Hi everyone! 🙂 In this video you will learn how to enable and disable components on a gameobject, as well as how to activate and deactivate gameobjects in your scene.
Playlist for this course: • #1 | LEARN UNITY AS AN...
Download Unity here: unity3d.com/ge...
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon and RU-vid Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Memberships: / @dani_krossing
Patreon: / mmtuts

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

 

25 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@tanveer4461
@tanveer4461 Год назад
I'm currently on the first day of my Unity journey and I understood this like a butter. These small-small Explanations & quick Examples you give time-to-time makes it some much more better than other tutorials. Thanks for being a great teacher.
@MrCher666
@MrCher666 Год назад
man. i even can't explain how I'm glad that i found ur channel. thanks for all ur lessons
@hertz8818
@hertz8818 Год назад
This guy got some amazing videos on learning this stuff, very cool and easy to follow
@TheLostEggroll
@TheLostEggroll Год назад
Love how you explain things. You are now my go to Unity help
@amandam992
@amandam992 2 года назад
this guys tutorials are the only ones that work
@the-great-mizuti
@the-great-mizuti Год назад
Another great video tutorial. Thank you, again!!
@LookDev05
@LookDev05 2 года назад
You look like alon musk! Nice tutorial
@TheREALGutterRat
@TheREALGutterRat 2 года назад
I've been thinking this too!! I even messaged a friend to say I have found my Elon Musk of game development 😂 I'm a huge fan of Elon. This fella sure sounds and talks like him as well!
@nuevofilipo3551
@nuevofilipo3551 Год назад
thought the same
@lasagnaface1449
@lasagnaface1449 Год назад
How would I be able to activate and deactive a game object in the second half of your video? You showed us how to deactive it but how would I, by pressing space again, reactivate it?
@sebastiansanhueza9601
@sebastiansanhueza9601 Год назад
Sorry for the late reply (a late bloomer learner myself): I bet you already found the answer to this. But if anybody else happened to tread the same path again, I tried the following code: if (Input.GetKeyDown("space")) { if (_door1.activeInHierarchy == true) { _door1.SetActive(false); } else if (_door1.activeInHierarchy == false) { _door1.SetActive(true); } }
@As-tray
@As-tray Год назад
@@sebastiansanhueza9601 Thanks!
@CharlesA.
@CharlesA. 6 месяцев назад
@@sebastiansanhueza9601 My guy ! I wish I could kiss you rn. I wasted 3+ hours searching for this. I knew it could be done like this but I not familiar enough with the language yet, so this was a huge help. you're a legend !
@dr.jagannathan6607
@dr.jagannathan6607 2 года назад
Great bro keep on doing it
@toxictreat8523
@toxictreat8523 Год назад
learning unity from Elon musk himself 😱😍
@ZeddyBoi786
@ZeddyBoi786 2 года назад
Hi dani.. could you plz make a video on how to display text on the second page of a website when 2 buttons e.g. 2 train stations and a continue button is pressed i need it for a uni assignment and im struggling to do that im using html, css and javascript for my assignment
@UGPAIDGAMER
@UGPAIDGAMER Год назад
MrBeast + elon musk = Dani Krossing who agrees?
@Dani_Krossing
@Dani_Krossing Год назад
Most people apparently, seeing I get comments like this about 3 times a day 😂
@parsaghost3733
@parsaghost3733 2 месяца назад
so this is how i should make open door mechanism
@edithasd2806
@edithasd2806 11 месяцев назад
hello, how could I make a camera speed change to 0 once my player is dead or destroyed? I'm about to lose it because I can't figure it out on my own :(
@bobbob9821
@bobbob9821 10 месяцев назад
If it is attached to the player then you could do something like unparent it at the moment of death.
@basselobeidat6290
@basselobeidat6290 2 года назад
im trying this with a rigidbody2d but it wont work, it keeps saying that rigidbody2d does not have a definition for enabled. Can you help?
@n_drake_0758
@n_drake_0758 2 года назад
make sure you have the right letters capitalized it's very case sensitive so if you dont it wont work, so in the code it would have to be RigidBody2D instead of rigidbody2d. idk if this helped or if you even still had this problem but that's what i would suggest is just checking the capitalization
@septarap3901
@septarap3901 Год назад
how to disable an object ontriggerstay?
@kabhikachambala3392
@kabhikachambala3392 2 года назад
Hey you forgot very importance exercise in php. how to make a download system using php.
@Dani_Krossing
@Dani_Krossing 2 года назад
Hi Kabhika. Every person will fall in love with new things during their life time, and personally I haven't worked with anything web dev related since my last job which was 5 years ago. As you can see I haven't uploaded PHP tutorials for quite a while, since my passion has shifted over in doing Game Dev instead. I won't get back to making web dev lessons any time soon, and even if I do it will just to tie up some unfinished courses or projects. 🙂 I see your messages often in the comment section, and I don't wish for you to waste your time if you are waiting around for more web dev tutorials.
@nobodycares9579
@nobodycares9579 10 месяцев назад
How to speak proper english.
@ashkelongonzaga6652
@ashkelongonzaga6652 2 года назад
How can you disable and enable a script while it's in a gameobject??
@Dani_Krossing
@Dani_Krossing 2 года назад
Just like I showed in this video, it's the same process. 🙂 Just create a serialize field that is the scripts name as the type, and attach the gameobject with the script to it inside the inspector.
@ashkelongonzaga6652
@ashkelongonzaga6652 2 года назад
@@Dani_Krossing can I put public instead of serialize?? And what's there difference??
@Dani_Krossing
@Dani_Krossing 2 года назад
The difference is that one is private, and the other is public. You should ALWAYS make fields private, unless you have a good reason for them to be public.
@ashkelongonzaga6652
@ashkelongonzaga6652 2 года назад
@@Dani_Krossing tysm!!!!
@historygaming87
@historygaming87 2 года назад
anything for visual scripting?
@Dani_Krossing
@Dani_Krossing 2 года назад
I'm not much of a visual scripter 🙂
@historygaming87
@historygaming87 2 года назад
@@Dani_Krossing got it, thanks lol
@Dani_Krossing
@Dani_Krossing 2 года назад
@@historygaming87 Hehe if you plan on getting serious with Unity, I would recommend learning how to code over visual scripting. 🙂 I have always seen visual scripting as a tool for people who are intimidated by programming, and making games goes hand in hand with doing programming. So personally I think it's a bit of a contradictive thing to use visual scripting. To me it's like wanting to be a Baker, but only wanna make pre-prepped bread that just needs adding water hehe. There is nothing wrong with learning visual scripting at all, I'm just a bit biased against it and think that you get MUCH more out of learning how to code your games instead. 😊 And even if you still wanna go the visual scripting route, I still HIGLY recommend learning the basics of how to code, to make the process easier.
@historygaming87
@historygaming87 2 года назад
@@Dani_Krossing I actually do know how to code lol. I know Python and a tiny bit of JavaScript. But if there’s an easier way to accomplish something that end with the same result, I’m all for it lol
@Dani_Krossing
@Dani_Krossing 2 года назад
I you have no issues with coding, then it is MUCH easier for you just to code it, rather than using visual scripting. 🙂 But if you wanna try something new, then I hope you find it useful hehe.
@ayomideakerele8572
@ayomideakerele8572 2 года назад
Good day Dani, you made a tutorial about submitting form data using jquery, but i find it hard to implement image upload into this method of form submision ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-L7Sn-f36TGM.html for reference. i'd love it if you could help me with this. Thank you
@workplace6261
@workplace6261 2 года назад
no offence but everything explained in this video could be explained in 5 min max
@beckjanssens6504
@beckjanssens6504 2 года назад
Luckily for you RU-vid lets anybody make their own videos, so I might suggest you get started on yours if you are that much better at explaining something as complicated as Unity
@TheREALGutterRat
@TheREALGutterRat 2 года назад
It's Unity for beginners, people learn at different rates. I personally enjoyed it and appreciate the length, as most videos ARE only 5 minutes long. Sometimes small things are better explained in detail with examples, just like Dani has presented. I've even subscribed now :D Keep up the good videos :)
Далее
Boxing !! 😂
00:21
Просмотров 4,4 млн
10 Unity Tips You (Probably) Didn't Know About
6:47
Просмотров 42 тыс.
Unity's NEW input system in 13 minutes
13:02
Просмотров 20 тыс.