OPENING a DOOR using a BUTTON

  Рет қаралды 25,923

SpeedTutor

SpeedTutor

Күн бұрын

Пікірлер: 86
@SpeedTutor
@SpeedTutor 4 жыл бұрын
GET THE ASSET & SCRIPTS ON MY PATREON HERE: www.patreon.com/SpeedTutor Patreon: www.patreon.com/SpeedTutor Join the Community Discord: discord.gg/vnhWy6R Check out my FREE Assets here: bit.ly/381ybzt
@StigDesign
@StigDesign 4 жыл бұрын
6:44 tip: on Norwegian KeyBoard i think Scandinavien keyBoard`s the key is: to left of the number 1 on keyboard for the | symbol, right under Esc key :)
@SpeedTutor
@SpeedTutor 4 жыл бұрын
Haha, thanks for the advice! :) Lets hope you save some people too!
@StigDesign
@StigDesign 4 жыл бұрын
@@SpeedTutor hehe yes :D Great Tutorial as always :)
@closetdemon4769
@closetdemon4769 Жыл бұрын
THANK YOU! ive been looking for this for ages
@SpeedTutor
@SpeedTutor Жыл бұрын
You're very welcome! :D
@trturki252
@trturki252 4 жыл бұрын
thanks for the tutorial, been needing this for a long time
@SpeedTutor
@SpeedTutor 4 жыл бұрын
I hope it will help! :)
@wallbrick1
@wallbrick1 9 ай бұрын
they dont seem to be working on multiple doors at once for example im having 2 doors and 2 buttons i a scene but they dotn both work
@SpeedTutor
@SpeedTutor 9 ай бұрын
What happens?
@vendo10
@vendo10 10 ай бұрын
thanks.helpfull tutorial but I have a quastion how to add sound effect? (for door) ı'm waiting help comment
@SpeedTutor
@SpeedTutor 10 ай бұрын
In the description, I will show you how - I have a tutorial on it specifically :)
@vendo10
@vendo10 10 ай бұрын
@@SpeedTutor Thank you very much. I'll be waiting for your new tutorials!
@MedicMainDave
@MedicMainDave 3 жыл бұрын
You just saved my life
@SpeedTutor
@SpeedTutor 3 жыл бұрын
Haha! That's no worries at all. What did you need this for?
@MedicMainDave
@MedicMainDave 3 жыл бұрын
@@SpeedTutor I needed it for something that has literally nothing to do with doors😂 A crafting table of sorts! 👍
@SpeedTutor
@SpeedTutor 3 жыл бұрын
Sometimes the concepts apply to lots of other things! Haha, good job! :P
@DextraVisual
@DextraVisual Жыл бұрын
How would I do this with a UI screenspace button mouse click or touchscreen?
@SpeedTutor
@SpeedTutor Жыл бұрын
You could just make the method public and then add the gameobject which has the script. Attach that to the button OnClick(). Away you go :)
@GiByGoZ
@GiByGoZ Жыл бұрын
спасибо папаша, только с тобой получилось сделать это
@SpeedTutor
@SpeedTutor Жыл бұрын
No problem, my friend! :)
@GiByGoZ
@GiByGoZ Жыл бұрын
@@SpeedTutor :)
@iansarmiento23
@iansarmiento23 4 жыл бұрын
Alternate Title: 20 minutes tutorial on how to open a door!
@SpeedTutor
@SpeedTutor 4 жыл бұрын
It's probably a really heavy door! :)
@wizardingstudios6364
@wizardingstudios6364 3 жыл бұрын
Hi, tons of Unreal Blueprint tutorials allows to close a door while it's opening (or the opposite). I found no samples for unity, every time an animation need to finish before to start the new one. Please have you a tip for this?
@Nesrak
@Nesrak 2 жыл бұрын
I followed your tutorial but now when I press the button it opens the door then it keeps repeating the opening animation as if you were watching it in the animator. Help? Edit: Nevermind I was able to fix it by making a closedIdle and an openIdle and making their own coroutines for them.
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Awesome work!
@a.j9812
@a.j9812 3 жыл бұрын
Hey man, I followed the scripts to a T with the exception of the button is on “E” instead of Mouse0 (or left click) and I the animations aren’t trigger unsure why that is but the door just won’t move 😂
@SpeedTutor
@SpeedTutor 3 жыл бұрын
This door isn't static, is it? Did you add a debug line to see if it actually runs the code you're trying? Did you add a collider to the object? Just some suggestions to try! :)
@a.j9812
@a.j9812 3 жыл бұрын
@@SpeedTutor hey, when you mean static you mean?? Yup there is a collider I had altered it a few times. I’ve yet to try a debugging line but unsure what line to try (sorry still very new to this)
@SpeedTutor
@SpeedTutor 3 жыл бұрын
In the top right of the inspector there will be a little tick box, if it's ticked. Animation won't play! :)
@a.j9812
@a.j9812 3 жыл бұрын
@@SpeedTutor ah that fixed it thank you
@SpeedTutor
@SpeedTutor 3 жыл бұрын
No worries, glad I could help! :)
@lekojoy7016
@lekojoy7016 2 жыл бұрын
Hello, idk if yiu answer me, but my Unity says *Assets\Scripts\Door Button Controller.cs(19,13): error CS0246: The type or namespace name 'IEnumenator' could not be found (are you missing a using directive or an assembly reference?) * Scripts are the same to you, but IEnumenator doesn`t work
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Do you have errors before or after this?
@lekojoy7016
@lekojoy7016 2 жыл бұрын
@@SpeedTutor no thanks, I saw my mistake, I see that I wrote IEnumenator and I needed to write IEnumerator, xD stupidest mistake
@nikos5799
@nikos5799 2 жыл бұрын
Hello i need your help, im trying to add more doors but anything that i've tried so far are doesnt seem to work.. can you help me out?
@SpeedTutor
@SpeedTutor 2 жыл бұрын
What happens?
@nikos5799
@nikos5799 2 жыл бұрын
@@SpeedTutor i cannot make it work so i made my own script about doors, if you can create a new video with the same script but adding more doors with diferent keys it would be wonderful
@fangbauble0133
@fangbauble0133 2 жыл бұрын
For some rason my crosshair isn't working and i'm not sure how I can fix it??? Great tutorial for everything else though
@SpeedTutor
@SpeedTutor 2 жыл бұрын
You mean it doesn't turn red?
@paulscott3083
@paulscott3083 2 жыл бұрын
How would u use this with new unity input system instead of writing keycode.(what ever key)
@SpeedTutor
@SpeedTutor 2 жыл бұрын
That's pretty tough to write in a comment, I'd recommend you watch a tutorial on KZbin for it. As that will serve you better, as it's a far far far more complicated process. :)
@Chocobo_Kwehh
@Chocobo_Kwehh 4 жыл бұрын
can i use the this same script to make a telephone or a safe? i wanna make a gameobject with many buttons like a piano and each button does a thing like make sound or put a number for a password
@SpeedTutor
@SpeedTutor 4 жыл бұрын
You could do exactly that!
@stutiparekh4543
@stutiparekh4543 3 жыл бұрын
I'm getting errors in Unity in regards to the [SerializeField] code... the error says "The type or namespace name 'SerializeField' could not be found (are you missing a using directive or an assembly reference". I got someone to verify my code for any errors and my code seems identical to this tutorial. Any tips?? Thanks in advance
@SpeedTutor
@SpeedTutor 3 жыл бұрын
I can't say without looking at your code, maybe if you paste it here! :)
@Vuldemurt
@Vuldemurt 3 жыл бұрын
That's because you haven't installed all the required workloads in the installer. You probably figured it out already though.
@keanpatrickalfon4495
@keanpatrickalfon4495 3 жыл бұрын
Hi, i just want to ask if i duplicate the doors would that animate both when raycast hits the original one? and how can i make multiple doors animate differently in just one script? thanks in advance :)
@SpeedTutor
@SpeedTutor 3 жыл бұрын
They would animate separately! :)
@keanpatrickalfon4495
@keanpatrickalfon4495 3 жыл бұрын
can you make a video for mobile platform using ui button on opening multiple doors pls would happy to support you
@MustafaAbbasi
@MustafaAbbasi 3 жыл бұрын
can you make it so that it works with multiple in a scene
@SpeedTutor
@SpeedTutor 3 жыл бұрын
You can do that! That's what it does! :)
@MustafaAbbasi
@MustafaAbbasi 3 жыл бұрын
@@SpeedTutor Yes,i experimented a little bit and it works. Amazing tutorial!
@SpeedTutor
@SpeedTutor 3 жыл бұрын
Thanks very much, I really appreciate it! :D
@wallbrick1
@wallbrick1 9 ай бұрын
how did you fix it ? @@MustafaAbbasi
@alfaaz7146
@alfaaz7146 4 жыл бұрын
I'm Currently Working on an FPS Android Game. Can I get some Level Objective Ideas Please. 🥺 This would be available on Playstore Once it is finished.
@SpeedTutor
@SpeedTutor 4 жыл бұрын
What exactly are you looking for?
@Justin-nw7xi
@Justin-nw7xi 4 жыл бұрын
@@SpeedTutor How To Make Objective System?
@popcornking
@popcornking 3 жыл бұрын
Can we use any version of vs code??? For unity!!
@SpeedTutor
@SpeedTutor 3 жыл бұрын
I think so, but I'd recommend 2017 or above! :)
@popcornking
@popcornking 3 жыл бұрын
@@SpeedTutor I'm using latest version ೨೦೨೧, is it best??
@popcornking
@popcornking 3 жыл бұрын
@@SpeedTutor thankyou for responding❤️ And also thanks for solution 👍 And the gift for you is subscribe to your channel as 2times ❤️
@SpeedTutor
@SpeedTutor 3 жыл бұрын
Thanks! Yes, that's the best option! :)
@TheBoringNova
@TheBoringNova 4 жыл бұрын
the open animation keeps looping, how do i fix that?
@SpeedTutor
@SpeedTutor 4 жыл бұрын
Select the animation and untick "Loop time"
@TheBoringNova
@TheBoringNova 4 жыл бұрын
@@SpeedTutor oh ok cool. Thank you! :)
@sososong3438
@sososong3438 4 жыл бұрын
nice
@SpeedTutor
@SpeedTutor 4 жыл бұрын
Thanks very much! :)
@sm7_633
@sm7_633 Жыл бұрын
my crosshair doesn't turn red and the door doesn't open
@SpeedTutor
@SpeedTutor Жыл бұрын
Any errors?
@sm7_633
@sm7_633 Жыл бұрын
@@SpeedTutor im not getting any errors on the console
@sadiqaga8901
@sadiqaga8901 3 жыл бұрын
can i get script please
@SpeedTutor
@SpeedTutor 3 жыл бұрын
It's on my Patreon! :)
@EXP256
@EXP256 3 жыл бұрын
nvm fixed it
@SpeedTutor
@SpeedTutor 3 жыл бұрын
You're so fast! :P
@raevod6361
@raevod6361 2 жыл бұрын
Pleease give me the script 😭
@SpeedTutor
@SpeedTutor 2 жыл бұрын
It's on my Patreon if you need it but remember you can watch this video for free :)
@luishamiltonbalem5669
@luishamiltonbalem5669 3 жыл бұрын
didn't work for me :(
@SpeedTutor
@SpeedTutor 3 жыл бұрын
What happened?
@Set2End
@Set2End 3 ай бұрын
blocked and banned
@bojanmileski6541
@bojanmileski6541 2 жыл бұрын
Animator.GotoState: State could not be found Help please
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Did you create the correct name when you referenced it?
@bojanmileski6541
@bojanmileski6541 2 жыл бұрын
@@SpeedTutor omg you are right I rewatched whole video and found out that it was open door instead of door open hahaha in animator
@bojanmileski6541
@bojanmileski6541 2 жыл бұрын
@@SpeedTutor thanks!
@SpeedTutor
@SpeedTutor 2 жыл бұрын
Haha, sometimes something so obvious can be the thing that's wrong. I've done it myself! :P Good work.
Create Interactive Doors in Unity Using Chat GPT
17:04
SpeedTutor
Рет қаралды 3,6 М.
OPENING a DOOR in UNITY with a RAYCAST
18:18
SpeedTutor
Рет қаралды 55 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Unbelievable $1 Assets! (Unity's Dec 24 Mega-Bundle)
8:44
SpeedTutor
Рет қаралды 4,8 М.
A Better VR Button In UE / Tutorial
26:18
VirtualRook
Рет қаралды 2,2 М.
How I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 1,3 МЛН
I Wish I Had Known This Before I Started Unity Game Development...
11:11
Coding Adventure: Portals
16:06
Sebastian Lague
Рет қаралды 1,3 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН