nanos world API Reference Unofficial documentation
Function Shared Moderate

Paintable:SetMaterialColorParameter

Sets a Color parameter in this Actor's material

Syntax

Lua
my_paintable:SetMaterialColorParameter(parameter_name, color, index = -1, attachable_id = "")

Parameters

Name Type Default Description
parameter_name string The name of the material parameter
color Color 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