Unity3d中一个单元中有多少个像素? [英] How many pixels in a unit in Unity3d?

查看:461
本文介绍了Unity3d中一个单元中有多少个像素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题之前曾被问过多次,但是一个单位中有多少像素?答案似乎是您想要的(典型答案是相对的,1m且与物理有关).

I know this question has been asked multiple times before, but how many pixels is one unit in Unity? The answer seems to be that it is whatever you want it to be (the typical answer is that it is relative, 1m and has something to do with the physics).

但是在sprite的上下文中它必须以某种方式转换为像素吗?以这个64x64像素的框为例:

But it has to translate to pixels somehow in the context of sprites? Take for instance this 64x64 pixel box:

推荐答案

您可以看到每个单位有多少个像素. Unity从一开始就具有100个像素(至少对我而言),您可以为每个sprite更改它.如果您选择了一个精灵(在项目选项卡中),则其外观应类似于下图,您可以在其中将其更改为所需的任何内容.

You can see how many pixles it is per unit. Unity has 100 pixels per unit from the start (at least for me) and you can change it for each sprite. If you select a sprite (in the project tab) it should look something like the image below and from there you can change it to whatever you want.

这篇关于Unity3d中一个单元中有多少个像素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆