Skip to content

Api > Material > SetTextureScale()


Material.SetTextureScale(string name, Vector2 value)⚓︎

Sets the placement scale of texture propertyName.

Parameters:⚓︎

Name Type Description
name string Property name, e.g. "_MainTex".
value Vector2 Texture placement scale.

Usage⚓︎

---@type Material
local material;

---@type string
local name;

---@type Vector2
local value;


material.SetTextureScale(name, value)