ReferenceScripting APIMotionLayeruniform
MotionLayer.uniform
methodSets a Shader layer's (or a Shader effect's) own uniform, by name.
| Name | uniform |
|---|---|
| Kind | method of MotionLayer |
| Called as | scene.layer(…).uniform(…) |
| As a node | Set Material Value (logic graph) |
| Since | 0.4 |
Syntax
uniform( name: string, value: SettingValue): voidParameters
| Name | Type | Description |
|---|---|---|
name | string | The uniform's name, without its "u_" |
value | SettingValue | A number, a colour or a list of numbers |
Returns
Nothing.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.