Aego Русский

MaterialParameter

struct engine.MaterialParameter

Stores one explicit, typed per-node material override. This is a data record inside MaterialOverride, not an addable component or a material asset.

On this page

Boolean field

field Boolean bool

Stores the explicit true/false value for a boolean parameter; the parameter's Kind determines whether this field is used.

Integer field

field Integer int32

Stores an integer override as an exact signed 32-bit value instead of converting it through floating-point lanes.

Kind field

field Kind engine.MaterialParameterKind

Preserves the parameter's declared type so removal or a later type change cannot silently reinterpret the saved value.

Name field

field Name string

Identifies the declared shader parameter by its exact name, not its position in the material layout.

Value field

field Value vec4

Stores floating-point, vector or colour lanes according to Kind. Integer and Boolean keep their values in separate fields.