Unity精灵镜像重复

5
我在Tiled模式下设置了spriteRenderer,并将sprite的WrapMode设置为Mirror,但当我改变sprite纹理的宽度时,在正常模式下纹理重复了,但在每次重复时不会镜像。
我有遗漏什么吗?!
场景中的Sprite: enter image description here
Sprite设置:enter image description here
1个回答

3
我找到了解决方法,镜子只有在使用平铺时才起作用。为了解决这个问题,请创建一个像下面这样的无光/透明材质,并将其平铺设置为x:2和y:1。

enter image description here

现在只需要将制作好的材质赋予你的精灵渲染器即可。这样你的精灵就会被镜像。

enter image description here

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接