Motion
Get Motion

ReferenceScripting APIMotionScenepick

MotionScene.pick

method

A random one of a list.

Namepick
Kindmethod of MotionScene
Called asscene.pick(…)
As a nodeRandom List Item (logic graph)
Since0.3

Syntax

pick<T>(list: readonly T[]): T | undefined

Parameters

NameTypeDescription
listreadonly T[]The list

Returns

T | undefined: one of it, or undefined for an empty list.

See also

In examples: Constellations, Rain Harbour