Material.SetTexture(string name, Texture value)⚓︎
Sets a named texture.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
name | string | Property name, e.g. "_MainTex". |
value | Texture | Texture to set. |
Usage⚓︎
---@type Material
local material;
---@type string
local name;
---@type Texture
local value;
material.SetTexture(name, value)