Material.SetTextureOffset(string name, Vector2 value)
Sets the placement offset of texture propertyName.
Parameters:
Name | Type | Description |
---|---|---|
name | string | Property name, for example: "_MainTex". |
value | Vector2 | Texture placement offset. |
Usage
---@type Material
local material;
---@type string
local name;
---@type Vector2
local value;
material.SetTextureOffset(name, value)