Documentation on the website which also happens to be the first search result for the term SetTextureOffset or mainTextureOffset seems to sum up the issue nicely.
Material.SetTextureOffset
Material.SetTextureOffset
function SetTextureOffset (propertyName : String, offset : Vector2) : void
Description
Sets the placement offset of texture propertyName.
Common texture names used by Unity's builtin shaders:
"_MainTex" is the main diffuse texture.
This can also be accessed via ***mainTextureOffset*** property.
"_BumpMap" is the normal map.
"_Cube" is the reflection cubemap.
function SetTextureOffset (propertyName : String, offset : Vector2) : voidDescription
Sets the placement offset of texture
propertyName.Common texture names used by Unity's builtin shaders:
"_MainTex"is the main diffuse texture. This can also be accessed viamainTextureOffsetproperty."_BumpMap"is the normal map."_Cube"is the reflection cubemap.
Material.mainTextureOffset
Material.mainTextureOffset
var mainTextureOffset: Vector2;
Description
The texture offset of the main texture.
The same as using GetTextureOffset or SetTextureOffset with "_MainTex" name
var mainTextureOffset: Vector2;Description
The texture offset of the main texture.
The same as using
GetTextureOffsetorSetTextureOffsetwith"_MainTex"name
A material has a main texture, which is the one you see. Additionally, additionally isit can have other textures, such as a bump or cube map which effectaffect how the objectsobject's appearance is calculated. mainTextureOffset only effectsaffects the materialsmaterial's main texture. SetTextureOffset lets you specify the name of the texture to offset, so SetTextureOffset("_MainTex" , .05) would be eqivelent to would be eqivalent to mainTextureOffset = .05;