0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

unity レイヤーの使いかた

Posted at

Unityにおけるレイヤー
ゲームでも同じようにレイヤーを使っていて、例えばUnityの場合であれば、スプライトを表示する順番を制御するためにSorting Layer(ソーティングレイヤー)を使います。SortingLayerの選択は『SpriteRenderer』のコンポーネントの中で行います。

SortingLayerを追加する場合は『Add Sorting Layer』を選択してタグやレイヤーを追加する画面を開きます。デフォルトだと『 Default』ひとつになっていて、ここに追加できます。

スプライトを表示する場合 順番を決めることも可能

キャラクターレイヤーのなかで「Order In Layer」という設定項目を使って手前、奥を設定できます。

「Order In Layer」は値が小さいものから描画されます。つまり、値が小さければ画面奥に表示され、値が大きければその上に描画されて結果として画面手前に表示されるようになります。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?