nanos world API Reference Unofficial documentation
Function Shared Moderate

Paintable:ResetMaterial

Resets the material from the specified index to the original one

Syntax

Lua
my_paintable:ResetMaterial(index = -1, attachable_id = "")

Parameters

Name Type Default Description
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 reset the material. Pass empty to reset on main mesh only