- Home /
Door tutorial unity 5?
I am trying to find a tutorial on how to make a door in unity 5. The problem is, whatever video I watch is for an older version of unity, and have old scripting. I am just wondering if anyone knows either how to, or a tutorial that shows how to make a door for unity 5. Thanks.
What for door? How does it need to react? Why does it need to do it what it needs to do and how does it need to do what it needs to do?
There are a ton of methods and tricks.
Also, most older tutorials still work for todays unity.
Edit: Just for fun: “THE DOOR PROBLE$$anonymous$$”
I dont what $$anonymous$$d the door does, just as long as it actually works! The tutorials that I have watched dont, they are for older versions. Something like a trigger on the ground, or the player can press the enter key or something to open it when he is close to the door would be preferable though.
I did one of these last year, it ain't pretty but no reason it shouldn't work now, it uses a mouse click to activate the door.
A simple door, sliding or rotating, only needs transform.position or transform.rotation along with lerping, and OnTriggerEnter. These things have been features of Unity since the very beginning.
I was just trying to figure out how to do it though! I have worked it out now.
Answer by TheNerdyPlane · May 26, 2016 at 12:27 PM
I have figured out how to do it. It was actually pretty simple. I just had to heavily modify two scripts that I has using to attack an enemy and make him die. Now you click enter on the door, and it opens and closes. I just have to make the animations and textures better now, and I will have a mighty fine door working! Thanks for the help everyone.
Your answer

Follow this Question
Related Questions
Looking for tutorial for door animation using mecanim 2 Answers
FPS TUTORIAL: AI robot not taking damage. 0 Answers
2d tutorial error 2 Answers
learn c#? please help. 1 Answer
Questions about Lightning, Navigation , Tutorialsource 0 Answers