首先,给出圣典的解释: Material.mainTextureOffset 主纹理偏移量 var mainTextureOffset : Vector2 Description描述 The texture offset of the main texture. 主纹理中的纹理偏移量 The same as using GetTextureOffset or SetTextureOffset with "_MainTex" name. 这个与带有"_MainTex"
给模型偏移纹理 using UnityEngine; using System.Collections; [RequireComponent(typeof(Renderer))] public class ModelTextureAnimation : MonoBehaviour { //材质索引 public int MaterialIndex; //材质主纹理名字 public string TextureName = "_MainTex"; //行数 public int Col