Motion
Get Motion

ReferenceScripting APIMotionLayeruniform

MotionLayer.uniform

method

Sets a Shader layer's (or a Shader effect's) own uniform, by name.

Nameuniform
Kindmethod of MotionLayer
Called asscene.layer(…).uniform(…)
As a nodeSet Material Value (logic graph)
Since0.4

Syntax

uniform(    name: string,    value: SettingValue): void

Parameters

NameTypeDescription
namestringThe uniform's name, without its "u_"
valueSettingValueA number, a colour or a list of numbers

Returns

Nothing.

See also

SettingValue