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