Skip to main content

Material.SetTextureOffset(string name, Vector2 value)

Sets the placement offset of texture propertyName.

Parameters:

NameTypeDescription
namestringProperty name, for example: "_MainTex".
valueVector2Texture placement offset.

Usage

---@type Material
local material;

---@type string
local name;

---@type Vector2
local value;


material.SetTextureOffset(name, value)