SlidingDoor MonoBehaviour
Overview
The SlidingDoor behaviour is used to control and animate moving door sections.
Inspector

Properties
| Name | Type | Description |
|---|---|---|
| Occlusion Portal | OcclusionPortal | An optional occlusion portal component for the doorway. This will be synced to the door opening and closing so that it occludes objects when closed. |
| Open Duration | Float | The time it takes to go from fully closed to fully open and vice versa. |
| Animation Curve | AnimationCurve | The interpolation curve for animating the door sections. |
| Sections | Door Section Array | One or more door sections. All will move when the door opens and closes. |
| Audio Open | [AudioClip][unity-audioclip] | The audio to play when the door is unlatched and opened. |
| Audio Close | [AudioClip][unity-audioclip] | The audio to play when the door closes and latches. |
| Audio Locked | [AudioClip][unity-audioclip] | The audio to play when attempting to open the door while locked. |
| Audio Unlock | [AudioClip][unity-audioclip] | The audio to play when unlocking or locking the door. |
Door Section
| Name | Type | Description |
|---|---|---|
| Transform | Transform | The door section transform. |
| Offset | Vector3 | The offset from starting (closed) position when opened. |