{"id":148678,"date":"2022-04-05T15:37:33","date_gmt":"2022-04-05T06:37:33","guid":{"rendered":"https:\/\/www.webtech.co.jp\/help\/?page_id=148678"},"modified":"2022-08-30T11:03:10","modified_gmt":"2022-08-30T02:03:10","slug":"unity_z_fighting","status":"publish","type":"page","link":"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio7\/guide\/reference\/unity_z_fighting\/","title":{"rendered":"Unity \u3067\u518d\u751f\u3057\u305f\u969b\u306b\u3001\u30d1\u30fc\u30c4\u304c\u30c1\u30e9\u30c1\u30e9\u660e\u6ec5\u3059\u308b\u306e\u306b\u5bfe\u51e6\u3057\u305f\u3044"},"content":{"rendered":"<p>\u8907\u6570\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092Unity\u4e0a\u3067\u518d\u751f\u3057\u305f\u969b\u306b\u3001\u512a\u5148\u5ea6\u306e\u9ad8\u3044\u30d1\u30fc\u30c4\u304c\u4f4e\u3044\u30d1\u30fc\u30c4\u306e\u4e0b\u306b\u6f5c\u308a\u8fbc\u3093\u3067\u30c1\u30e9\u30c1\u30e9\u8868\u793a\u3055\u308c\u308b Z\u30d5\u30a1\u30a4\u30c6\u30a3\u30f3\u30b0(Z-fighting)\u3068\u547c\u3070\u308c\u308b\u73fe\u8c61\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u52d5\u7684\u30e1\u30c3\u30b7\u30e5\u30d0\u30c3\u30c1\u30f3\u30b0\u306e\u5f71\u97ff\u306b\u3088\u308a\u3001\u8907\u6570\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540c\u58eb\u3067\u30de\u30c6\u30ea\u30a2\u30eb\u63cf\u753b\u9806\u5e8f\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u3053\u3068\u3067\u767a\u751f\u3057\u3066\u304a\u308a\u3001SS6Player for Unity \u3067\u89e3\u6d88\u3059\u308b\uff12\u3064\u306e\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"#OrderInLayer\">Order In Layer \u3092\u8a2d\u5b9a\u3059\u308b<\/a>\uff08SS6Player for Unity v1.1.0\u4ee5\u964d\u5bfe\u5fdc)\n<ul>\n<li><a href=\"#Inspector\">\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u3088\u308a\u8a2d\u5b9a<\/a><\/li>\n<li><a href=\"#Script\">\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8a2d\u5b9a<\/a><\/li>\n<li><a href=\"#note\">\u5099\u8003<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#z_pos\">Z\u5024\u3092\u5909\u3048\u308b<\/a><\/li>\n<li><a href=\"#Usage_notes\">\u4f7f\u7528\u4e0a\u306e\u6ce8\u610f\u70b9<\/a><\/li>\n<li><a href=\"#related_page\">\u95a2\u9023\u30da\u30fc\u30b8<\/a><\/li>\n<\/ul>\n<h2><a id=\"OrderInLayer\"><\/a>Order In Layer \u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p><strong>SS6Player for Unity v1.1.0 \u4ee5\u964d<\/strong>\u3067\u4f7f\u7528\u53ef\u80fd\u306a\u65b9\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6a5f\u80fd\u306f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066 Renderer.sortingOrder\uff08\u63cf\u753b\u9806\u5e8f\u306e\u5f37\u5236\u6307\u5b9a\uff09\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002 \u8a2d\u5b9a\u65b9\u6cd5\u306f\uff12\u7a2e\u985e\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5bfe\u5fdc\u304c\u884c\u3044\u3084\u3059\u3044\u65b9\u6cd5\u3067\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><a id=\"Inspector\"><\/a>\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u3088\u308a\u8a2d\u5b9a<\/h3>\n<p>Hierarchy\u4e0a\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e <strong>Script_SpriteStudio6_Root<\/strong> \u306e\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u5185\u306e<br \/>\n<strong>[Initial\/Preview Play Setting] &gt; Order In Layer<\/strong><br \/>\n\u3067\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/Inspector.png\" alt=\"\" width=\"379\" height=\"245\" class=\"alignnone size-full wp-image-82484\" \/><\/p>\n<h3><a id=\"Script\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8a2d\u5b9a<\/h3>\n<p>\u8a2d\u5b9a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eScript_SpriteStudio6_Root\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092scriptRoot\u3068\u3057\u305f\u969b\u306b<br \/>\n<strong>scriptRoot.OrderInLayer = \uff08\u4efb\u610f\u306e\u6574\u6570\uff09;<\/strong><br \/>\n\u3067\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/script.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/script.png\" alt=\"\" width=\"880\" height=\"111\" class=\"alignnone size-full wp-image-82485\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/script.png 880w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/script-768x97.png 768w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2018\/11\/script-624x79.png 624w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/a><\/p>\n<h3><a id=\"note\"><\/a>\u5099\u8003<\/h3>\n<ul>\n<li>\u52d5\u4f5c\u4e2d\u3067\u306e\u8a2d\u5b9a\u5909\u66f4\u3082\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u4e0a\u304b\u3089\u6307\u5b9a\u3059\u308b\u969b\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30b7\u30fc\u30f3\u4e0a\u306binstantiate\u3057\u305f\u76f4\u5f8c\u3067\u3042\u3063\u3066\u3082\u3001scriptRoot\u304cnull\u3067\u306a\u3051\u308c\u3070\u3001\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<li>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u4ed8\u3044\u3066\u3044\u308bMeshRenderer\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5b9f\u4f53\u5316\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af\u306f\u884c\u3046\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\uff08Script_SpriteStudio6_Root.cs\u306e\u5185\u90e8\u51e6\u7406\u3067\u3001MeshRenderer\u304c\u4f7f\u7528\u53ef\u80fd\u306a\u6642\u306b\u672c\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff09\u3002<\/li>\n<\/ul>\n<h2><a id=\"z_pos\"><\/a>Z\u5024\u3092\u5909\u3048\u308b<\/h2>\n<p>Z\u5024\u30920.0001f \u7a0b\u5ea6\u306e\u5909\u5316\u3092\u4ed8\u3051\u3066\u30ab\u30e1\u30e9\u6df1\u5ea6\u3092\u5909\u3048\u308b\u3053\u3068\u3067\u75c7\u72b6\u3092\u6291\u5236\u3067\u304d\u307e\u3059\u3002 \u30de\u30c6\u30ea\u30a2\u30eb\u63cf\u753b\u9806\u5e8f\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u75c7\u72b6\u306f\u300c\u30ab\u30e1\u30e9\u304b\u3089\u306e\u6df1\u5ea6\u304c\u540c\u3058\u300d\u3067\u306a\u3044\u3068\u767a\u751f\u3057\u307e\u305b\u3093\u306e\u3067\u3001\u30ab\u30e1\u30e9\u304b\u3089\u306e\u6df1\u5ea6\u306b\u5909\u5316\u3092\u8a2d\u3051\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002 SS6Player for Unity v1.1.0 \u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><a id=\"Usage_notes\"><\/a>\u4f7f\u7528\u4e0a\u306e\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li>Renderer.SortingOrder\u3067\u306e\u63cf\u753b\u9806\u5e8f\u6307\u5b9a\u306f\u3001\u30ab\u30e1\u30e9\u304b\u3089\u306e\u6df1\u5ea6\uff08Z\u30bd\u30fc\u30c8\uff09\u3067\u306e\u63cf\u753b\u9806\u5e8f\u5236\u5fa1\u3088\u308a\u3082\u512a\u5148\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\u300cOrder In Layer \u8a2d\u5b9a\u300d\u3001\u300cZ\u5024\u3092\u5909\u3048\u308b\u300d\u3092\u4f75\u7528\u3059\u308b\u969b\u306f\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>2\u3064\u306e\u65b9\u6cd5\uff08\u300cRender.SortingOrder\u300d\u3068\u300c\u30ab\u30e1\u30e9\u6df1\u5ea6\u3092\u5909\u3048\u308b\u300d\uff09\u306e\u5dee\u3092\u7406\u89e3\u3057\u3066\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u69d8\u306b\u6709\u5229\u306a\u63cf\u753b\u9806\u5e8f\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2><a id=\"related_page\"><\/a>\u95a2\u9023\u30da\u30fc\u30b8<\/h2>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio7\/guide\/output\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><br \/>\n<span style=\"font-size: small;\">SpriteStudio Ver.6\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092SS6Player For Unity\u3067Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio7\/guide\/output\/unity_chara_action\/\">Unity\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u52d5\u304b\u3059\u65b9\u6cd5<\/a><br \/>\n<span style=\"font-size: small;\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3001Unity\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5207\u308a\u66ff\u3048\u306a\u3069\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/SpriteStudio\/SS6PlayerForUnity\/wiki\" class=\"su-button su-button-style-default gtmEvent\" style=\"color:#ffffff;background-color:#be80d2;border-color:#9867a8;border-radius:5px\" target=\"_self\" id=\"op_ss6p_unity\"><span style=\"color:#ffffff;padding:7px 20px;font-size:16px;line-height:24px;border-color:#d2a7e0;border-radius:5px;text-shadow:0px 0px 0px #000000\"><i class=\"sui sui-github\" style=\"font-size:16px;color:#ffffff\"><\/i> SS6Player For Unity<\/span><\/a><br \/>\n\u3000\u6700\u65b0\u7248\u3001\u8cea\u554f\u30fb\u8981\u671b\u306f GitHub\u3078<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092Unity\u4e0a\u3067\u518d\u751f\u3057\u305f\u969b\u306b\u3001\u512a\u5148\u5ea6\u306e\u9ad8\u3044\u30d1\u30fc\u30c4\u304c\u4f4e\u3044\u30d1\u30fc\u30c4\u306e\u4e0b\u306b\u6f5c\u308a\u8fbc\u3093\u3067\u30c1\u30e9\u30c1\u30e9\u8868\u793a\u3055\u308c\u308b Z\u30d5\u30a1\u30a4\u30c6\u30a3\u30f3\u30b0(Z-fighting)\u3068\u547c\u3070\u308c\u308b\u73fe\u8c61\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306f\u52d5\u7684\u30e1\u30c3\u30b7\u30e5\u30d0\u30c3..<\/p>\n","protected":false},"author":33,"featured_media":0,"parent":148663,"menu_order":24,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[],"class_list":["post-148678","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/comments?post=148678"}],"version-history":[{"count":0,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148678\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148663"}],"wp:attachment":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/media?parent=148678"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/tags?post=148678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}