Adding doors to the scene

If you want to add a pair of doors to your level just place the prefab Door in your level, ensuring the arrow is aiming at direction the player will be looking when entering the room.

Each door has to be set as an Exit to each other on their respective SceneDoor component. If a door has an exit it’ll show a red line between the doors. If two doors have each other as an exit a green line will be shown connecting the doors.

Untitled

Doors do not have any visuals by default. You can of course, add any model you want to represent the door and create prefab variants or other prefabs that contain the existing Door prefab with specific visuals.

Adding door transition animations

The engine supports transition animations between doors, these can be set on the SceneDoor component itself. The project has two example prefabs called DoorDefaultAnimation located in HorrorEngine/ExampleContent/Doors and LadderDownAnimation/LadderUpAnimation, located in the same folder. Any of these can be dragged & dropped onto the Animation field of the SceneDoor component.

Untitled

Creating your own door transitions prefab

You can create your own door animations by doing the following. Please check existing transitions to see how it’s done:

https://lh6.googleusercontent.com/TI7m5Oh3FT5HhWpX6225HmLLD4miqcB0DV3S7epXLea2705XLT2J89UWlFtcssHV3-hxzgbzhRmqxMtiP-Fmlz56vSqYxQtUzTibveK32qwsek3twGAsMtUqma4YO863HPkaotrGksqq4HbU_AB1xKCM3Ux3OpJYrV5e0XQ0UNjDDQ9DzqkpcpS2vQ

https://lh4.googleusercontent.com/BmcxxIL9ECZAXtzO4yFt6y7HgreL5ozIc3mhPlATqvAmctCbVf6maQtP405_ZoFH1JeN6ZTGVqvHLb9dFTGykXerVEeQeqFDUr6QOaWHw1kZcW7I67qDwX9dJlhApQFS4-MZbHZ_SN4LbB47gVDG7flk_EguvEKTZL-6KhJo2bBCiydbWyEZ5UsGlA

Door locks