Api > Material > GetTextureOffset()
Material.GetTextureOffset(string name)⚓︎
Gets the placement offset of texture propertyName.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
name | string | The name of the property. |
Returns:⚓︎
type | Description |
---|---|
Vector2 | the placement offset of texture propertyName. |
Usage⚓︎
---@type Material
local material;
---@type string
local name;
local val0 = material.GetTextureOffset(name)