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