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
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 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
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.
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 😂
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! :)
@@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)
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
That's pretty tough to write in a comment, I'd recommend you watch a tutorial on TH-cam for it. As that will serve you better, as it's a far far far more complicated process. :)
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?
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
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
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 :)
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
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 :)
Haha, thanks for the advice! :) Lets hope you save some people too!
@@SpeedTutor hehe yes :D Great Tutorial as always :)
THANK YOU! ive been looking for this for ages
You're very welcome! :D
thanks.helpfull tutorial but I have a quastion how to add sound effect? (for door) ı'm waiting help comment
In the description, I will show you how - I have a tutorial on it specifically :)
@@SpeedTutor Thank you very much. I'll be waiting for your new tutorials!
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
What happens?
thanks for the tutorial, been needing this for a long time
I hope it will help! :)
You just saved my life
Haha! That's no worries at all. What did you need this for?
@@SpeedTutor I needed it for something that has literally nothing to do with doors😂
A crafting table of sorts! 👍
Sometimes the concepts apply to lots of other things! Haha, good job! :P
спасибо папаша,
только с тобой получилось сделать это
No problem, my friend! :)
@@SpeedTutor :)
How would I do this with a UI screenspace button mouse click or touchscreen?
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 :)
Alternate Title: 20 minutes tutorial on how to open a door!
It's probably a really heavy door! :)
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?
What happens?
@@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
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.
Awesome work!
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 😂
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! :)
@@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)
In the top right of the inspector there will be a little tick box, if it's ticked. Animation won't play! :)
@@SpeedTutor ah that fixed it thank you
No worries, glad I could help! :)
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
Do you have errors before or after this?
@@SpeedTutor no thanks, I saw my mistake, I see that I wrote IEnumenator and I needed to write IEnumerator, xD stupidest mistake
How would u use this with new unity input system instead of writing keycode.(what ever key)
That's pretty tough to write in a comment, I'd recommend you watch a tutorial on TH-cam for it. As that will serve you better, as it's a far far far more complicated process. :)
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?
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
You could do exactly that!
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
I can't say without looking at your code, maybe if you paste it here! :)
That's because you haven't installed all the required workloads in the installer. You probably figured it out already though.
can you make it so that it works with multiple in a scene
You can do that! That's what it does! :)
@@SpeedTutor Yes,i experimented a little bit and it works. Amazing tutorial!
Thanks very much, I really appreciate it! :D
how did you fix it ?
@@MustafaAbbasi
For some rason my crosshair isn't working and i'm not sure how I can fix it??? Great tutorial for everything else though
You mean it doesn't turn red?
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 :)
They would animate separately! :)
can you make a video for mobile platform using ui button on opening multiple doors pls would happy to support you
Can we use any version of vs code??? For unity!!
I think so, but I'd recommend 2017 or above! :)
@@SpeedTutor I'm using latest version ೨೦೨೧, is it best??
@@SpeedTutor thankyou for responding❤️
And also thanks for solution 👍
And the gift for you is subscribe to your channel as 2times ❤️
Thanks! Yes, that's the best option! :)
the open animation keeps looping, how do i fix that?
Select the animation and untick "Loop time"
@@SpeedTutor oh ok cool. Thank you! :)
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.
What exactly are you looking for?
@@SpeedTutor How To Make Objective System?
my crosshair doesn't turn red and the door doesn't open
Any errors?
@@SpeedTutor im not getting any errors on the console
can i get script please
It's on my Patreon! :)
nice
Thanks very much! :)
nvm fixed it
You're so fast! :P
Pleease give me the script 😭
It's on my Patreon if you need it but remember you can watch this video for free :)
didn't work for me :(
What happened?
blocked and banned
Animator.GotoState: State could not be found
Help please
Did you create the correct name when you referenced it?
@@SpeedTutor omg you are right I rewatched whole video and found out that it was open door instead of door open hahaha in animator
@@SpeedTutor thanks!
Haha, sometimes something so obvious can be the thing that's wrong. I've done it myself! :P Good work.