使用 MaterialPropertyBlock 更改纹理偏移mainTextureOffset

https://answers.unity.com/questions/767646/materialpropertyblock-main-texture-offset.html

propertyBlock.SetVector("_MainTex_ST", new Vector4(0.5f, 0.5f, 0.25f, 0.25f));

猜你喜欢

转载自blog.csdn.net/K20132014/article/details/95965241
今日推荐