nanos world API Reference Unofficial documentation
Function Client Moderate

Paintable:SetMaterialFromSceneCapture

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

Syntax

Lua
my_paintable:SetMaterialFromSceneCapture(scene_capture, index = -1)

Parameters

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