编程文汇

Unity tilemap产生缝隙


#1
  • 贴片图要打包成图集
  • 图集的padding要足够大。(我最开始选择2,改成8后缝隙消失)
    • 老外的解释:The tearing comes from oversampling a tile by a tiny bit (i.e. 0.0001), and into an adjacent tile's content. Padding repeats the border pixels of a tile to ensure the effects of oversampling can't be seen, even though it's still happening.