build Constructors 1

data_object Properties 30

AnimationCurve
Curve
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
bool
Automatically close after opening.
AutoCloseDelay
float
Delay before automatically closing (in seconds). -1 means stay open.
CloseFinishedSound
SoundEvent
Sound to play when a door has finished closing.
CloseSound
SoundEvent
Sound to play when a door is closed.
CloseTooltipDescription
string
CloseTooltipIcon
string
CloseTooltipTitle
string
IsLocked
bool
Is this door locked?
IsUsable
bool
Can this door be opened by pressing it.
LinkedDoor
Door
Optional linked door that opens when this door opens. Useful for double doors.
LockedSound
SoundEvent
Sound to play when a door is interacted with while locked.
LockedTooltipDescription
string
LockedTooltipIcon
string
LockedTooltipTitle
string
Mode
DoorMode
Whether this door rotates or slides.
OnClose
Doo
Called when the door is closed.
OnOpen
Doo
Called when the door is opened. Receives the GameObject that opened it.
OpenAwayFromPlayer
bool
Open away from the person who uses this door.
OpenFinishedSound
SoundEvent
Sound to play when a door is fully opened.
OpenSound
SoundEvent
Sound to play when a door is opened.
OpenTooltipDescription
string
OpenTooltipIcon
string
OpenTooltipTitle
string
Pivot
GameObject
Optional pivot point, origin will be used if not specified. The pivot's rotation defines the hinge axis - the door rotates around the pivot's up axis. Orient the pivot so its up axis points sideways to make a trapdoor.
SlideOffset
Vector3
Local-space offset the door slides to when fully open.
Speed
float
Speed. Degrees per second for rotating, units per second for sliding.
StartOpen
bool
Start in the open position.
State
DoorState
TargetAngle
float
How far should the door rotate.

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.