LoginSignup
0
1

More than 1 year has passed since last update.

Unityの長さの単位は「Unity unit」。デフォルトだと1 Unity unitは1メートル。

Posted at

Unityプロジェクトで使用される長さの単位は、「Unity unit」(読み:ユニティユニット)です。

デフォルトだと、1 Unity unitは1メートルです。

ソース

次の用語集に記載があります。

Unity ユニット /Unity unit
Unity プロジェクトで使用されるサイズの単位。デフォルトでは、Unity ユニットは 1 メートルです。別のスケールを使用するには、アセットをインポートするときにインポート設定で Scale Factor を設定します。


同じく公式サイトのGlossaryより。

Unity unit:
The unit size used in Unity projects. By default, 1 Unity unit is 1 meter. To use a different scale, set the Scale Factor in the Import Settings when importing assets.

利用例

公式の利用例は次のようなものがあります。

公式ブログ「2D アートアセットの解像度選択」より

一般的に、1 Unity ユニットを 1 メートルと考えることがグッドプラクティスです。


公式ドキュメント「Importing and preparing Sprites for an Isometric Tilemap」より

Pixels Per Unit (PPU) - This value is the number of pixels that make up one Unity unit for the selected Sprite. This determines the size of the Sprite when it is rendered on the Tilemap.
This is also affected by the Cell Size setting of the Grid that contains the Tilemap, which determines how many Unity units make up a single Cell. Refer to the example below to see how PPU values and the Grid’s Cell Size settings interact.


ただ、次のページのように「unity unit」ではなく単に「unit」という表記もある点に注意してください。

公式ドキュメント「Transforms」より

By default, the physics engine assumes that one unit in world space corresponds to one meter.

雑感

以下、雑感。

  • 個人の主観になりますが「Unityにおける長さ1が1m」というのはよく話題に上がるけれど、その単位の名称ってあまり言及されませんよね?ね!?(個人の感想です)

  • 「Unity unit」って、めちゃくちゃ「ググられビリティ」が悪い・・・マジで悪い。

  • Unityはじめたら多くの人はまず、「1立方Unity unit」のCubeを作ると思うんですが、「1立方メートル」と同じ大きさって考えると、めっちゃでかいですね。

  • Spriteの設定に「Pixel Per Unit」ってあるから、実は「Unit」という表記はよく見る(はず)

  • いきなり「1 Unity unit」とか「1 Unityユニット」とかって、表記が出てきても、びっくりしないでくれよな!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1