Skip to content
You're reading the docs for Railroader 0.6 (the MoW Update), currently available on the Experimental branch.

ToggleAnimation

A clickable toggle that plays an animation — doors, hatches, vents, etc.

  • Kind: ToggleAnimation
  • Availability: Any

Animation clip to play.

key

string

State key for persistence.

messageFalse

string = Click to Open

Tooltip when closed.

messageTrue

string = Click to Close

Tooltip when open.

speed

float = 1

Playback speed multiplier.

Clickable collider transform.

title

string

UI title.

{
"kind": "ToggleAnimation",
"animation": { "clipName": "Left Door" },
"speed": 2.0,
"key": "door.l",
"targetColliderObject": {
"path": ["boxcar01", "Left Doors", "Bone 1"]
},
"title": "Door",
"messageTrue": "Click to Close",
"messageFalse": "Click to Open",
"name": "Left Door",
"transform": {
"position": [0.0, 0.0, 0.0],
"rotation": [0.0, 0.0, 0.0, 1.0],
"scale": [1.0, 1.0, 1.0]
}
}