nanos world API Reference Unofficial documentation
Function Client Moderate

Paintable:SetMaterialFromWebUI

Sets the material at the specified index of this Actor to a WebUI object

Syntax

Lua
my_paintable:SetMaterialFromWebUI(webui, index = -1)

Parameters

Name Type Default Description
webui WebUI The WebUI object to use as a material
index optional integer -1 The material index to apply (<code>-1</code> means all indices)