Function
Moderate
Paintable:SetMaterialScalarParameter
Sets a Scalar parameter in this Actor's material
Syntax
my_paintable:SetMaterialScalarParameter(parameter_name, scalar, index = -1, attachable_id = "")
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
parameter_name
|
string | — | The name of the material parameter |
scalar
|
float | — | The value to set |
index
optional
|
integer | -1 |
The material index to apply (<code>-1</code> means all indices) |
attachable_id
optional
|
string | "" |
The attachable ID (set with <code>AddSkeletalMeshAttached</code> or <code>AddStaticMeshAttached</code>) to apply the material parameter. Pass empty to set on main mesh only |