unity Sprite中的Pixels Per Unit

Dewxin / 2023-05-09 / 原文

unity中最小的网格就是1unit。1unit默认是1米。

1 Unity unit = 1 meter (100cm)

对于一个16*16像素的图片,如果我们将其Pixels Per Unit设置为16,那么这张图片的长宽都是1unit。在unity中刚好契合最小的格子。