2Dの表示順

「2Dの表示順」の編集履歴(バックアップ)一覧はこちら

2Dの表示順」(2015/06/21 (日) 21:35:16) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

同じLayerNameならOrderが大きいほど手前に表示される -Spriteでの例 SpriteRenderer obj=obj2.AddComponent<SpriteRenderer>(); obj.sortingLayerName = "Units"; obj.sortingOrder = 2; -3Dtextの例 GameObject obj=GameObject.Instantiate(getCoinText, new Vector2( end.x,end.y ), Quaternion.identity) as GameObject; obj.GetComponent<TextMesh>().text="10coins"; obj.GetComponent<MeshRenderer>().sortingLayerName = "UI";

表示オプション

横に並べて表示:
変化行の前後のみ表示: