Door
Openable and closable door objects.
Introduction
Door turns a plain model into a door that opens and closes. Swing angle, how players operate it, and whether it shuts itself again are all handled by the component. The Door component panel in the Uni editor Image The Door component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Door. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Scene category, and click the Door block. The editor spawns a door with the Door component already attached, ready to adjust. How to Access - the Door block in Asset Panel > Device > Scene
Properties
Is Active Bool Turns the component on or off. Opening Angle Int How wide the door swings open, in degrees. Trigger Mode Enum How players work the door: walking into its sensor zone, or pressing an interaction button. Reset Time Float How long until the door closes itself again. Only applies when Trigger Mode is set to Trigger. Interact Text Open String The interaction label while the door is closed. Interact Text Close The interaction label while the door is open. Property Type Description Every property on the Door component.
Events
Door has no events.
Commands
Door has no commands.
Example
Make a simple door Door - Simple Example