In this tutorial i added a script to open the door when an fps player enters a trigger.
Unity sliding door with switch script.
And in c you ve wanted some new content for a long time so i took an evening to make a few videos separate from unity for the community directly.
Slidingdoor cs make an empty gameobject and call it door drag and drop your door model into scene and rename it to body move the body object inside door add a collider preferably spherecollider to door object and make it much bigger then the.
They re a little rougher than my usual ones but here s one of the first few a quick overview of making automated doors for your games.
This is a simple task for beginners to unity and programming with c.
Below is a script to make a sliding door instead of a regular one suitable for sci fi levels and futuristic doors.