Uploaded March 2020 | Updated September 2026, 3 weeks ago
In this video I give a couple of simple scripts which will allow you to open and close doors and drawers with mouse clicks. You click door or drawer handle and they open or close. Let me show you what I got here in this project. I have a kind of a nightstand with a drawer and a door. Drawer has a handle and a box collider attached edited so it comprises this handle. Box collider will detect mouse clicks. Door has a handle and a box collider as well. Drawer will be moved this way. Door will be rotated this way around Y-axis. Drawer has a OpenBox script attached which does the job. Don’t ask me why I named it this way. Here is this script. It is pretty simple one but if you need some explanation how does it work I’m ready to answer your questions. A door has open dorr script attached. Here it is. Pretty simple as well. These two scripts allow me to open and close this things.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Project Files Here opengameart.org/content/nightstand-with-door-and-drawer-can-be-opened
What is this video about also:
How To Open And Close 3D Door And 3D Drawer With Mouse Click In Unity Game, unity door, unity open 3d door, unity open 3d drawer, unity door animation, unity drawer animation, unity open door animation, unity 3d door open animation, unity open drawer animation, unity 3d drawer open animation, unity door script, unity drawer script, unity open door with mouse click, unity door open close animation, unity drawer open close animation, unity 3d door open tutorial, unity mouse click on object, unity mouse click collider, unity mouse click to move object, unity mouse click to rotate object, unity mouse click 3d object.
In this video I give a couple of simple scripts which will allow you to open and close doors and drawers with mouse clicks. You click door or drawer handle and they open or close. Let me show you what I got here in this project. I have a kind of a nightstand with a drawer and a door. Drawer has a handle and a box collider attached edited so it comprises this handle. Box collider will detect mouse clicks. Door has a handle and a box collider as well. Drawer will be moved this way. Door will be rotated this way around Y-axis. Drawer has a OpenBox script attached which does the job. Don’t ask me why I named it this way. Here is this script. It is pretty simple one but if you need some explanation how does it work I’m ready to answer your questions. A door has open dorr script attached. Here it is. Pretty simple as well. These two scripts allow me to open and close this things.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Project Files Here opengameart.org/content/nightstand-with-door-and-drawer-can-be-opened
What is this video about also:
How To Open And Close 3D Door And 3D Drawer With Mouse Click In Unity Game, unity door, unity open 3d door, unity open 3d drawer, unity door animation, unity drawer animation, unity open door animation, unity 3d door open animation, unity open drawer animation, unity 3d drawer open animation, unity door script, unity drawer script, unity open door with mouse click, unity door open close animation, unity drawer open close animation, unity 3d door open tutorial, unity mouse click on object, unity mouse click collider, unity mouse click to move object, unity mouse click to rotate object, unity mouse click 3d object.










