Skip to main content

Material.SetTextureScale(string name, Vector2 value)

Sets the placement scale of texture propertyName.

Parameters:

NameTypeDescription
namestringProperty name, e.g. "_MainTex".
valueVector2Texture placement scale.

Usage

---@type Material
local material;

---@type string
local name;

---@type Vector2
local value;


material.SetTextureScale(name, value)