Material.GetTextureScale

Switch to Manual
public Vector2 GetTextureScale (string name);
public Vector2 GetTextureScale (int nameID);

Parameters

nameID通过 Shader.PropertyToID 检索的属性的名称 ID。
name属性的名称。

Description

获取纹理 propertyName 的位置缩放。

Common texture names used by Unity's builtin shaders:
"_MainTex" is the main diffuse texture. This can also be accessed via mainTextureScale property.
"_BumpMap" is the normal map.
"_Cube" is the reflection cubemap.

另请参阅:mainTextureScale 属性、SetTextureScale