Quick Setup
Last updated
Last updated
Some door objects may appear flat when dragged from the prefabs folder
Set X rotation to -90 to fix this issue
Make sure you have a FPSController
Add a DoorInteractor script (This may be on the Main Camera already):
Ray Distance: This is how far you can interact with objects
Interaction Key: What key should we use for interaction clicks. Default: Mouse 0
Add a DoorInventory object from the prefabs folder:
Inventory Key: What key press do we need to open the inventory
Key List: Will fill when you collect object (Leave blank)
Add a DoorUIManager:
Object Interaction Prompts:
InteractTextBG: UI background for interaction text
Interaction UI: UI interactionnametext object
IconImage: UI - Icon that can be displayed
KeyPromptUI: For the key prompts when collecting, using or removing
Notification UI:
NotificationTextUI: Notification TextMeshPro gameobject from the UI
NotificationUIBG: The background UI object
Notification UI - Text Customisation:
Size of the notification
Inventory Fields:
Inventory slot prefab
Inventory Panel UI object
Fading duration when opening and closing the inventory
Timer: The timers for showing the popup UI of notifications on screen
Crosshair UI: Add the Crosshair UI here
Add a DoorAudioManager
You can add the Sounds - ScriptableObjects to this to make them playable
Add a Door object to your project:
Box Collider
DoorItem script
EnablePrompt: Whether you want to interact prompt to show
Icon Parameters:
Enable whether you want to show the icon from the UI manager
Key Prompt Parameters:
Whether you want to show the KeyPromptText
Add text below to prompt for the player
Interaction Name Parameters:
Whether you want to show some kind of interaction text
Add the interaction text to this field
Item Type: Set this to the door type you wish to use
DoorInteractable script
Interactable Type: Select a Door or Drawer
Door Transform: Add the door to this slot here
Door Opening Settings: Set the angle, axis, speeds for opening and closing
Sound Delay Settings: Add the sounds scriptable objects and delay the audio if you like
Plank Settings: If you want to use planks over the doors to block it. Show it and set how many are above
Lock Settings:
Spawning Items:
Crosshair Canvas
Door Inventory Canvas
Text Prompts Canvas
Add a 3D object of a key to your scene and make sure it is setup as below:
Box Collider
Door Item script
Set the DoorType to Key
Key Collectable script
KeyScriptable: Add the relevant ScriptableObject to this slot
PickupSound: Add a pickup sound of your choice
More information can be found on
You can find more information on