Inheritence

Constructors

Door

Properties

AnimationCurve Animation curve to use, X is the time between 0-1 and Y is how much the door is open to its target angle from 0-1.
AutoClose Automatically close after opening.
AutoCloseDelay Delay before automatically closing (in seconds). -1 means stay open.
CloseFinishedSound Sound to play when a door has finished closing.
CloseSound Sound to play when a door is closed.
CloseTooltipDescription
CloseTooltipIcon
CloseTooltipTitle
IsLocked Is this door locked?
IsUsable Can this door be opened by pressing it.
LinkedDoor Optional linked door that opens when this door opens. Useful for double doors.
LockedSound Sound to play when a door is interacted with while locked.
LockedTooltipDescription
LockedTooltipIcon
LockedTooltipTitle
Mode Whether this door rotates or slides.
OnClose Called when the door is closed.
OnOpen Called when the door is opened. Receives the GameObject that opened it.
OpenAwayFromPlayer Open away from the person who uses this door.
OpenFinishedSound Sound to play when a door is fully opened.
OpenSound Sound to play when a door is opened.
OpenTooltipDescription
OpenTooltipIcon
OpenTooltipTitle
Pivot Optional pivot point, origin will be used if not specified.
SlideOffset Local-space offset the door slides to when fully open.
Speed Speed. Degrees per second for rotating, units per second for sliding.
StartOpen Start in the open position.
State
TargetAngle How far should the door rotate.

Methods

Close Closes the door. Does nothing if already closed or closing.
Open Opens the door. Does nothing if already open or opening.
Toggle Toggles the door between open and closed states.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.