Function
Moderate
Paintable:SetMaterialFromSceneCapture
Sets the material at the specified index of this Actor to a SceneCapture object
Syntax
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) |