【Unity】修改MainMaps 下的offset 的值

来源:互联网 发布:开一家淘宝店 编辑:程序博客网 时间:2024/06/15 03:44

要得到图中 MainMaps 的offset 的值

.GetComponent<Renderer>().material.mainTextureOffset  其中 mainTextureOffset 是一个 Vector2 
0 0