{"id":17307,"date":"2018-08-27T18:15:33","date_gmt":"2018-08-27T09:15:33","guid":{"rendered":"https:\/\/cg-method.com\/?p=17307"},"modified":"2026-10-03T18:49:18","modified_gmt":"2026-10-03T09:49:18","slug":"unity-ui-shader","status":"publish","type":"post","link":"https:\/\/cg-method.com\/unity\/unity-ui-shader\/","title":{"rendered":"Unity\u306eUI\u30b7\u30a7\u30fc\u30c0\u30fc6\u4f8b\uff5c\u753b\u50cf\u52b9\u679c\u30fb\u307c\u304b\u3057\u3068Mask\u306e\u78ba\u8a8d"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">UI\u753b\u50cf\u306e\u660e\u308b\u3055\u3001\u767d\u9ed2\u3001\u5358\u8272\u3001\u8272\u76f8\u3001\u6a21\u69d8\u3001\u307c\u304b\u3057\u3092\u5909\u3048\u308b6\u4f8b\u3092\u6574\u7406\u3057\u307e\u3059\u3002<strong>\u8272\u3092\u5909\u3048\u308b\u3060\u3051\u306a\u3089Image\u3084Button\u306e\u6a19\u6e96\u8a2d\u5b9a\u304b\u3089\u78ba\u8a8d\u3057\u3001\u753b\u50cf\u306e\u8272\u6210\u5206\u3092\u52a0\u5de5\u3059\u308b\u5834\u5408\u306b\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9078\u3073\u307e\u3059\u3002<\/strong>\u4e0b\u306b\u63b2\u8f09\u3059\u308b\u307c\u304b\u3057\u30b3\u30fc\u30c9\u306f\u3001UI\u306b\u5272\u308a\u5f53\u3066\u305f\u753b\u50cf\u3092\u307c\u304b\u3059\u51e6\u7406\u3067\u3059\u3002\u30d1\u30cd\u30eb\u306e\u80cc\u5f8c\u306b\u3042\u308b\u30b7\u30fc\u30f3\u306e\u6620\u50cf\u306f\u53d6\u5f97\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u63b2\u8f09\u753b\u50cf\u3068ShaderLab\u306e\u4f8b\u306f\u65e7\u8a18\u4e8b\u306e\u8cc7\u6599\u3067\u3059\u3002\u5143\u306eUnity Editor\u306e\u8a73\u7d30\u7248\u30fb\u63cf\u753b\u65b9\u5f0f\u306f\u8a18\u9332\u304b\u3089\u78ba\u5b9a\u3067\u304d\u305a\u3001Unity 6\uff0fURP\uff0fHDRP\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u30fb\u63cf\u753b\u30fb\u30de\u30b9\u30af\u52d5\u4f5c\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002\u6a19\u6e96\u6a5f\u80fd\u306e\u8aac\u660e\u306fuGUI 2.0\u306e\u516c\u5f0f\u8cc7\u6599\u306b\u7167\u5408\u3057\u3066\u3044\u307e\u3059\u3002\u65b0\u3057\u3044\u74b0\u5883\u3067\u8a66\u3059\u969b\u306f\u3001\u307e\u305a\u5225\u306e\u691c\u8a3c\u7528Scene\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2026\/09\/unity-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-matome\/\">Unity\u306e\u4f7f\u3044\u65b9\u30ac\u30a4\u30c9\uff5c\u74b0\u5883\u69cb\u7bc9\u30fbUI\u30fb2D\u30fb\u30a2\u30bb\u30c3\u30c8\u6d3b\u7528<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u306e\u74b0\u5883\u69cb\u7bc9\u3001UI\u5236\u4f5c\u30012D\u7d20\u6750\u306e\u7d44\u307f\u8fbc\u307f\u3001\u30a2\u30bb\u30c3\u30c8\u5c0e\u5165\u3001Prefab\u7ba1\u7406\u3092\u76ee\u7684\u5225\u306b\u6848\u5185\u3002\u66f8\u7c4d\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u6559\u6750\u306e\u9078\u3073\u65b9\u3068\u3001\u5236\u4f5c\u4e2d\u306b\u3064\u307e\u305a\u3044\u305f\u3068\u304d\u306e\u89e3\u8aac\u8a18\u4e8b\u3092\u63a2\u305b\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<h2 class=\"wp-block-heading\">\u76ee\u7684\u304b\u3089\u6a19\u6e96\u6a5f\u80fd\u3068\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9078\u3076<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u76ee\u7684\u30fb\u78ba\u8a8d\u9805\u76ee<\/th><th>\u65b9\u6cd5\u30fb\u5224\u65ad<\/th><\/tr><\/thead><tbody><tr><td>\u62bc\u3057\u305f\u3068\u304d\u306e\u8272\u30fb\u64cd\u4f5c\u4e0d\u53ef\u306e\u898b\u305f\u76ee<\/td><td>Button\u306eTransition\u3092Color Tint\u307e\u305f\u306fSprite Swap\u306b\u3059\u308b\u3002\u767d\u9ed2\u306e\u898b\u305f\u76ee\u3060\u3051\u3067\u30af\u30ea\u30c3\u30af\u3092\u7121\u52b9\u306b\u305b\u305a\u3001Interactable\u3082\u6307\u5b9a\u3059\u308b\u3002<\/td><\/tr><tr><td>\u753b\u50cf\u5168\u4f53\u3092\u6697\u304f\u3059\u308b\u30fb\u8272\u3092\u91cd\u306d\u308b<\/td><td>\u307e\u305aImage\u306eColor\u3092\u5909\u66f4\u3059\u308b\u3002\u5143\u753b\u50cf\u306e\u8272\u3092\u767d\u307e\u3067\u6301\u3061\u4e0a\u3052\u308b\u52a0\u5de5\u3068\u306f\u533a\u5225\u3059\u308b\u3002<\/td><\/tr><tr><td>\u753b\u50cf\u3092\u767d\u9ed2\u30fb\u5358\u8272\u30fb\u5225\u306e\u8272\u76f8\u306b\u3059\u308b<\/td><td>\u753b\u50cf\u306eRGB\u3092\u52a0\u5de5\u3059\u308b\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u691c\u8a0e\u3002\u900f\u660e\u90e8\u5206\u3068UI\u30de\u30b9\u30af\u3078\u306e\u5bfe\u5fdc\u3082\u78ba\u8a8d\u3059\u308b\u3002<\/td><\/tr><tr><td>\u6a21\u69d8\u3092\u7e70\u308a\u8fd4\u3057\u3066\u67a0\u5185\u306b\u8868\u793a\u3059\u308b<\/td><td>Image\u306eType\uff1dTiled\u3068\u3001\u89aa\u306eMask\uff0fRectMask2D\u3092\u5148\u306b\u691c\u8a0e\u3002\u72ec\u81eaUI\/TextureMask\u306f\u6a19\u6e96\u306e\u914d\u5e03\u6a5f\u80fd\u3067\u306f\u306a\u3044\u3002<\/td><\/tr><tr><td>UI\u306b\u4f7f\u30461\u679a\u306e\u753b\u50cf\u3092\u307c\u304b\u3059<\/td><td>\u753b\u50cf\u306eTexture\u3092\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3059\u308b\u51e6\u7406\u3002\u3053\u306e\u8a18\u4e8b\u306e9\u70b9\u5e73\u5747\u30b3\u30fc\u30c9\u306f\u3053\u306e\u7528\u9014\u3002<\/td><\/tr><tr><td>\u30e2\u30fc\u30c0\u30eb\u306e\u80cc\u5f8c\u306e\u30b7\u30fc\u30f3\u3092\u307c\u304b\u3059<\/td><td>\u30b7\u30fc\u30f3\u6620\u50cf\u306e\u53d6\u5f97\u3068\u3001\u305d\u306e\u63cf\u753b\u65b9\u5f0f\u306b\u5408\u3063\u305f\u307c\u304b\u3057\u51e6\u7406\u304c\u5225\u9014\u5fc5\u8981\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u5358\u4f53\u3067\u306f\u5b9f\u73fe\u3057\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">Button\u306e\u72b6\u614b\u5225\u8868\u793a\u306f<a href=\"https:\/\/docs.unity3d.com\/Packages\/com.unity.ugui@2.0\/manual\/script-SelectableTransition.html\">\u516c\u5f0f\u306eTransition Options<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u8868\u793a\u306e\u958b\u9589\u3084Image\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u308b\u624b\u9806\u306f\u3001\u672b\u5c3e\u306e\u30dc\u30bf\u30f3\u5207\u66ff\u8a18\u4e8b\u3078\u9032\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u6700\u521d\u306b\u78ba\u8a8d\u3059\u308b\u74b0\u5883\u3068Material\u306e\u5272\u308a\u5f53\u3066<\/h2>\n\n\n<ol class=\"wp-block-list\"><li>Unity Editor\u306e\u7248\u3001uGUI\u306e\u7248\u3001Built-in\uff0fURP\uff0fHDRP\u3001Canvas\u306eRender Mode\u3001\u30d3\u30eb\u30c9\u5148\u3092\u63a7\u3048\u307e\u3059\u3002\u65e7Sprite\u7528\u30b3\u30fc\u30c9\u304c\u3042\u308b\u3053\u3068\u3060\u3051\u3067\u3001\u3059\u3079\u3066\u306eCanvas\u3084\u63cf\u753b\u65b9\u5f0f\u306b\u5bfe\u5fdc\u3059\u308b\u3068\u306f\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002<\/li><li>Canvas\u5185\u306bImage\u30921\u3064\u7f6e\u304d\u3001Sprite\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Image\u306eColor\u306f\u767d\u30fbAlpha\u306f1\u3001Material\u306f\u6a19\u6e96\u306e\u307e\u307e\u306b\u3057\u3066\u3001\u5143\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u5148\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><li>\u914d\u5e03\u5143\u306e\u5b8c\u5168\u306a.shader\u30d5\u30a1\u30a4\u30eb\u3068\u3001\u5fc5\u8981\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u30fbinclude\u30d5\u30a1\u30a4\u30eb\u30fb\u5229\u7528\u6761\u4ef6\u3092\u78ba\u8a8d\u3057\u3066\u5c0e\u5165\u3057\u307e\u3059\u3002\u4e0b\u306e\u5909\u66f4\u7528\u65ad\u7247\u3060\u3051\u3092.shader\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u3082\u3001\u5b8c\u5168\u306a\u30b7\u30a7\u30fc\u30c0\u30fc\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/li><li>Console\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u30a8\u30e9\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u304c\u306a\u3051\u308c\u3070\u691c\u8a3c\u7528Material\u3092\u4f5c\u308a\u3001\u305d\u306eShader\u6b04\u3067\u76ee\u7684\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u9078\u629e\u3057\u3001Image\u306eMaterial\u3078\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u8907\u6570\u306eUI\u3067\u5171\u6709\u3057\u305fMaterial\u3092\u5909\u66f4\u3059\u308b\u3068\u3001\u4ed6\u306e\u8868\u793a\u306b\u3082\u5f71\u97ff\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li><li>\u30de\u30b9\u30af\u306a\u3057\u3067\u52b9\u679c\u3092\u78ba\u8a8d\u3057\u305f\u5f8c\u3001\u89aaMask\u3068\u89aaRectMask2D\u3092\u5225\u3005\u306b\u8ffd\u52a0\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002ScrollView\u3078\u5165\u308c\u308b\u306e\u306f\u3001\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u306e\u78ba\u8a8d\u5f8c\u306b\u3057\u307e\u3059\u3002Editor\u3060\u3051\u3067\u306a\u304f\u5bfe\u8c61\u30d3\u30eb\u30c9\u3067\u3082\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\">1\uff0e\u660e\u308b\u3055\u3092\u5909\u3048\u308b\uff1a\u65e7Sprites\/Default\u306e\u6539\u5909\u4f8b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u65e7\u4f8b\u306fSprites-Default.shader\u3092\u8907\u88fd\u3057\u3001Shader\u540d\u3068\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u51e6\u7406\u3092\u5909\u66f4\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u53c2\u7167\u5143\u306e<a href=\"https:\/\/qiita.com\/mache\/items\/fa664d5605ee057a80ce\">Unity 5.x\u5411\u3051\u306e\u8a18\u4e8b<\/a>\u3068\u3001\u5f53\u6642\u306e\u6a19\u6e96\u30b7\u30a7\u30fc\u30c0\u30fc\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u7570\u306a\u308b\u7248\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u95a2\u6570\u65ad\u7247\u3060\u3051\u3092\u5dee\u3057\u8fbc\u3080\u624b\u9806\u3068\u3057\u3066\u306f\u4f7f\u308f\u305a\u3001\u5143\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u5229\u7528\u6761\u4ef6\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306e1\u3064\u76ee\u306fShader\u5ba3\u8a00\u306e\u5909\u66f4\u524d\u30fb\u5909\u66f4\u5f8c\u30012\u3064\u76ee\u306ffrag\u95a2\u6570\u306e\u7f6e\u304d\u63db\u3048\u4f8b\u3067\u3059\u3002\u4e21\u65b9\u3092\u7d9a\u3051\u3066\u30b3\u30d4\u30fc\u3059\u308b\u5b8c\u5168\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Sprites\u7528\u306e\u5143\u30b3\u30fc\u30c9\u304c\u3001uGUI\u306eMask\uff0fRectMask2D\u306b\u3082\u5bfe\u5fdc\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-hlsl\" data-lang=\"ShaderLab\"><code>\/\/ \u5909\u66f4\u524d\nShader &quot;Sprites\/Default&quot;\n\/\/ \u5909\u66f4\u5f8c\nShader &quot;Sprites\/Default_Custom&quot;<\/code><\/pre><\/div>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-hlsl\" data-lang=\"ShaderLab\"><code>fixed4 frag(v2f IN) : SV_Target\n{\n    fixed4 c = SampleSpriteTexture(IN.texcoord) * IN.color;\n    c.rgb = c.rgb * 2 + max(fixed3(0,0,0), IN.color.rgb - 0.5) * 2;\n    c.rgb *= c.a;\n    return c;\n}<\/code><\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"370\" height=\"588\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171024004931.png\" alt=\"\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u8a2d\u5b9a\" class=\"wp-image-9540\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171024004931.png 370w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171024004931-189x300.png 189w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u65e7\u8a2d\u5b9a\u753b\u9762\u3067\u3059\u3002\u30b3\u30fc\u30c9\u4e0a\u306f\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u8272\u306b\u9802\u70b9\u8272\u3092\u639b\u3051\u305f\u5f8c\u306bRGB\u30922\u500d\u3057\u3001\u9802\u70b9\u8272\u304c0.5\u3092\u8d85\u3048\u305f\u5206\u3092\u52a0\u7b97\u3057\u307e\u3059\u3002\u5404RGB\u304c0.5\u306e\u3068\u304d\u306f\u52a0\u7b97\u9805\u304c0\u306b\u306a\u308a\u3001\u5148\u306e\u4e57\u7b97\u30682\u500d\u304c\u6253\u3061\u6d88\u3057\u5408\u3046\u8a08\u7b97\u3067\u3059\u3002Inspector\u306e8\u30d3\u30c3\u30c8\u5024128\u306f\u7d040.502\u3067\u3042\u308a\u3001\u8272\u7a7a\u9593\u3084Material\u306e\u8a2d\u5b9a\u3082\u3042\u308b\u305f\u3081\u3001\u5e38\u306b\u5143\u753b\u50cf\u3068\u5b8c\u5168\u4e00\u81f4\u3059\u308b\u5024\u3068\u306f\u65ad\u5b9a\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"468\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171024005113.gif\" alt=\"\u660e\u308b\u3055\u5909\u66f4\u306e\u30c6\u30b9\u30c8\" class=\"wp-image-9541\"\/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">GIF\u306f\u65e7\u4f8b\u306e\u5909\u5316\u3092\u793a\u3059\u8cc7\u6599\u3067\u3059\u3002\u65b0\u3057\u3044\u74b0\u5883\u3067\u306f\u3001\u5143\u753b\u50cf\u30fb\u4e2d\u9593\u5024\u30fb\u6700\u5927\u5024\u3092\u540c\u3058\u6761\u4ef6\u3067\u6bd4\u8f03\u3057\u3001\u900f\u660e\u306a\u7e01\u304c\u9ed2\u304f\u306a\u3089\u306a\u3044\u304b\u3082\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5358\u306bButton\u306e\u62bc\u4e0b\u8272\u3092\u5909\u3048\u308b\u7528\u9014\u306a\u3089\u3001\u5148\u306bColor Tint\u3067\u5fc5\u8981\u306a\u8868\u793a\u3092\u4f5c\u308c\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">2\uff0e\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\uff1a\u767d\u9ed2\u8868\u793a\u3068\u64cd\u4f5c\u4e0d\u53ef\u3092\u5206\u3051\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">RGB\u306e\u8272\u6210\u5206\u3092\u767d\u9ed2\u306b\u3059\u308b\u65e7Sprite\u7528\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u4f8b\u3067\u3059\u3002\u53c2\u7167\u5143\u306f<a href=\"https:\/\/nakamura001.hatenablog.com\/entry\/20140421\/1398083771\">2014\u5e74\u306eSprite\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u8a18\u4e8b<\/a>\u3067\u3059\u3002\u63b2\u8f09\u3055\u308c\u305f\u5b8c\u5168\u30b3\u30fc\u30c9\u3068\u5143\u306e\u5bfe\u5fdc\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u3001\u691c\u8a3c\u7528Material\u3092\u4f5c\u3063\u3066Image\u3078\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"313\" height=\"152\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221601.png\" alt=\"\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u30de\u30c6\u30ea\u30a2\u30eb\" class=\"wp-image-9628\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221601.png 313w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221601-300x146.png 300w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"214\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221646-768x214.png\" alt=\"\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u306e\u7d50\u679c\" class=\"wp-image-9629\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221646-768x214.png 768w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221646-300x83.png 300w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180110221646.png 953w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u65e7\u753b\u50cf\u306fGrayscale.shader\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u3002\u767d\u9ed2\u306b\u306a\u3063\u305f\u3053\u3068\u3060\u3051\u3067\u306fButton\u306f\u64cd\u4f5c\u4e0d\u53ef\u306b\u306a\u308a\u307e\u305b\u3093\u3002\u30af\u30ea\u30c3\u30af\u3092\u6b62\u3081\u308b\u5834\u5408\u306fButton\u306eInteractable\u3092\u30aa\u30d5\u306b\u3057\u3001Disabled\u306e\u8868\u793a\u3082\u5225\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5143\u30b3\u30fc\u30c9\u306fSprite\u5411\u3051\u3067\u3001uGUI\u306eStencil\u3084\u77e9\u5f62\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u3092\u5099\u3048\u305f\u73fe\u884cUI\u30b7\u30a7\u30fc\u30c0\u30fc\u3068\u3057\u3066\u306f\u78ba\u8a8d\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002\u30de\u30b9\u30af\u5185\u3067\u4f7f\u3046\u5834\u5408\u306f\u8868\u793a\u9818\u57df\u304b\u3089\u306f\u307f\u51fa\u3055\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">3\uff0e\u5358\u8272\u30d9\u30bf\u5857\u308a\uff1a\u5143\u306eRGB\u3092\u7f6e\u304d\u63db\u3048\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Image\u306eColor\u306b\u3088\u308b\u4e57\u7b97\u3068\u9055\u3044\u3001\u6a21\u69d8\u306eRGB\u3092\u6307\u5b9a\u8272\u306b\u7f6e\u304d\u63db\u3048\u308b\u65e7\u4f8b\u3067\u3059\u3002\u53c2\u7167\u5148\u306f<a href=\"https:\/\/github.com\/mike-neko\/SpriteShaderSample\/blob\/master\/Assets\/Shaders\/SpriteBetaMask.shader\">SpriteBetaMask.shader<\/a>\u3002\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5909\u66f4\u7b87\u6240\u306e\u629c\u7c8b\u306a\u306e\u3067\u3001\u3053\u308c\u3060\u3051\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b.shader\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-hlsl\" data-lang=\"ShaderLab\"><code>\/\/[MaterialToggle] _MaskOn (&quot;Mask On&quot;, Float) = 0\n\/\/_Color (&quot;Tint&quot;, Color) = (1,1,1,1)\n\/\/[MaterialToggle] PixelSnap (&quot;Pixel snap&quot;, Float) = 0\n\/\/fixed4 _Color;\nOUT.color = IN.color; \/\/* _Color;\nfixed4 m = lerp(c, _MaskColor, 1);<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u65e7\u8a18\u4e8b\u306e\u5909\u66f4\u306f\u8272\u6307\u5b9a\u3092\u9802\u70b9\u8272\u306b\u5bc4\u305b\u3001\u8272\u306e\u88dc\u9593\u3092\u30d9\u30bf\u5857\u308a\u5074\u3078\u56fa\u5b9a\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u5143\u30c6\u30af\u30b9\u30c1\u30e3\u306eAlpha\u3092\u6b8b\u3059\u51e6\u7406\u3084\u30d6\u30ec\u30f3\u30c9\u8a2d\u5b9a\u307e\u3067\u542b\u3081\u3066\u78ba\u8a8d\u3057\u3001\u900f\u660e\u90e8\u5206\u307e\u3067\u56db\u89d2\u304f\u5857\u3089\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002UI\u30de\u30b9\u30af\u3078\u306e\u5bfe\u5fdc\u306f\u3001\u5358\u8272\u5316\u306e\u8a08\u7b97\u3068\u306f\u5225\u3067\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"159\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113184031.png\" alt=\"\u30b5\u30f3\u30d7\u30eb\u753b\u50cf\" class=\"wp-image-9631\"\/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"237\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113184150-768x237.png\" alt=\"\u5358\u8272\u30d9\u30bf\u5857\u308a\u306e\u7d50\u679c\" class=\"wp-image-9632\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113184150-768x237.png 768w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113184150-300x93.png 300w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113184150.png 851w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u914d\u5e03\u5143\u306e<a href=\"https:\/\/github.com\/mike-neko\/SpriteShaderSample\/blob\/master\/README.md\">README<\/a>\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092MIT\u3001\u30b5\u30f3\u30d7\u30eb\u753b\u50cf\u3092Unity Technologies Japan\u306eUCL\u3068\u533a\u5225\u3057\u3066\u3044\u307e\u3059\u3002\u5c0e\u5165\u3059\u308b\u30b3\u30fc\u30c9\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u8868\u793a\u3092\u4fdd\u6301\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u753b\u50cf\u3092\u81ea\u5206\u306e\u7d20\u6750\u3068\u3057\u3066\u914d\u5e03\u3057\u306a\u3044\u3088\u3046\u3001\u4f7f\u7528\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306e\u6761\u4ef6\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">4\uff0e\u8272\u76f8\u5909\u66f4\uff1aHsvUI\u3068UIHue\u306e\u5f79\u5272<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u8272\u76f8\u3092\u5909\u3048\u308b\u65e7\u4f8b\u306f<a href=\"https:\/\/qiita.com\/Teach\/items\/52883127033885a95e82\">\u914d\u5e03\u5143\u306e\u8a18\u4e8b<\/a>\u3068<a href=\"https:\/\/github.com\/teach310\/Hue\">Hue\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092\u53c2\u7167\u3057\u307e\u3059\u3002HsvUI.shader\u306f\u8272\u5909\u63db\u3092\u884c\u3044\u3001UIHue.cs\u306fGraphic\u306eMaterial\u3078_Hue\u306e\u5024\u3092\u6e21\u3057\u307e\u3059\u3002Image\u306eColor\u306f\u767d\u306b\u3057\u3066\u3001\u5143\u753b\u50cf\u3078\u306e\u8272\u306e\u4e57\u7b97\u3068\u8272\u76f8\u5909\u66f4\u3092\u6df7\u540c\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n<ol class=\"wp-block-list\"><li>\u5c0e\u5165\u3057\u305fHsvUI.shader\u3068UIHue.cs\u306b\u30a8\u30e9\u30fc\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u3084Shader\u540d\u306f\u914d\u5e03\u30b3\u30fc\u30c9\u3068\u4e00\u81f4\u3055\u305b\u307e\u3059\u3002<\/li><li>\u691c\u8a3c\u7528Image\u306bUIHue\u3092\u8ffd\u52a0\u3057\u3001Hue\u30920\u304b\u3089\u5909\u3048\u3066\u8272\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306fCustom\/HsvUI\u3092Shader.Find\u3067\u63a2\u3057\u3001\u5fc5\u8981\u6642\u306bMaterial\u3092\u751f\u6210\u3059\u308b\u5b9f\u88c5\u3067\u3059\u3002<\/li><li>\u30de\u30b9\u30af\u5185\u3067\u306e\u8868\u793a\u3001\u518d\u751f\u958b\u59cb\u30fb\u505c\u6b62\u3001\u5bfe\u8c61UI\u306e\u7834\u68c4\u3001\u5bfe\u8c61\u30d3\u30eb\u30c9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u5024\u3092\u56fa\u5b9a\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5916\u3059\u5834\u5408\u306f\u3001\u4f7f\u7528\u3059\u308bMaterial\u3068_Hue\u3092\u4fdd\u5b58\u3057\u3001\u5916\u3057\u305f\u5f8c\u3082\u540c\u3058\u8868\u793a\u306b\u306a\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"551\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194024.png\" alt=\"\u8272\u76f8\u5909\u66f4\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u8a2d\u5b9a\" class=\"wp-image-9660\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194024.png 363w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194024-198x300.png 198w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"274\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194039.png\" alt=\"\u8272\u76f8\u5909\u66f4\u306e\u7d50\u679c\" class=\"wp-image-9661\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194039.png 442w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180120194039-300x186.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u53d6\u5f97\u3057\u305fUIHue.cs\u306fUpdate\u304b\u3089\u6bce\u30d5\u30ec\u30fc\u30e0\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u300c\u8272\u3092\u6c7a\u3081\u305f\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u524a\u9664\u3059\u308c\u3070\u8efd\u304f\u306a\u308b\u300d\u3068\u306f\u65ad\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002\u751f\u6210Material\u306e\u4fdd\u5b58\u30fb\u5171\u6709\u30fb\u7834\u68c4\u3068\u3001\u30d3\u30eb\u30c9\u306bShader\u304c\u542b\u307e\u308c\u308b\u6761\u4ef6\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/docs.unity3d.com\/6000.3\/Documentation\/ScriptReference\/Shader.Find.html\">Shader.Find\u306e\u516c\u5f0f\u8cc7\u6599<\/a>\u306b\u3082\u3001Editor\u3067\u898b\u3064\u304b\u308bShader\u304c\u30d3\u30eb\u30c9\u306b\u542b\u307e\u308c\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3053\u3068\u304c\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">HsvUI.shader\u306b\u306fStencil\u8a2d\u5b9a\u3001UNITY_UI_CLIP_RECT\u3001Alpha Clip\u306b\u95a2\u3059\u308b\u51e6\u7406\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u65e7\u30b3\u30fc\u30c9\u3092\u300c\u30de\u30b9\u30af\u51e6\u7406\u304c\u306a\u3044\u300d\u3068\u4e00\u62ec\u308a\u306b\u306f\u3057\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u51e6\u7406\u306e\u5b58\u5728\u3068\u3001\u81ea\u5206\u306eUnity\u7248\u30fbSoftness\u30fb\u5165\u308c\u5b50\u30de\u30b9\u30af\u3067\u6b63\u3057\u304f\u8868\u793a\u3067\u304d\u308b\u3053\u3068\u306f\u5225\u3067\u3042\u308a\u3001\u3053\u3053\u3067\u306f\u5b9f\u884c\u78ba\u8a8d\u6e08\u307f\u3068\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">5\uff0e\u6a21\u69d8\u306e\u30bf\u30a4\u30ea\u30f3\u30b0\u3068\u30de\u30b9\u30af\uff1a\u6a19\u6e96\u6a5f\u80fd\u304b\u3089\u7d44\u3080<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u65e7\u753b\u50cf\u306eUI\/TextureMask\u306f\u72ec\u81ea\u30b7\u30a7\u30fc\u30c0\u30fc\u540d\u3067\u3059\u3002Unity\u6a19\u6e96\u306eShader\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u540c\u540d\u306e\u6a5f\u80fd\u3092\u9078\u3079\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u73fe\u5728\u8ffd\u8de1\u3067\u304d\u305f\u8a18\u4e8b\u7528\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u3001\u3053\u306e\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u5b8c\u5168\u306a\u914d\u5e03\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u304f\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u3084Alpha\u5909\u66f4\u306e\u65ad\u7247\u3060\u3051\u3067\u306f\u518d\u73fe\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"448\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021115545.png\" alt=\"\u30dc\u30fc\u30c0\u30fc\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u4f5c\u6210\" class=\"wp-image-9529\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021115545.png 437w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021115545-293x300.png 293w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"277\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021120533.png\" alt=\"\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u8a2d\u5b9a\" class=\"wp-image-9530\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021120533.png 401w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021120533-300x207.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/figure>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"429\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021123013-768x429.png\" alt=\"\u30bf\u30a4\u30ea\u30f3\u30b0\u306e\u7d50\u679c\" class=\"wp-image-9532\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021123013-768x429.png 768w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021123013-300x167.png 300w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/10\/20171021123013.png 991w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306f\u65e7\u72ec\u81ea\u30b7\u30a7\u30fc\u30c0\u30fc\u306e\u8a2d\u5b9a\u30fb\u7d50\u679c\u3067\u3059\u3002\u6a21\u69d8\u3092\u7e70\u308a\u8fd4\u3057\u3066\u67a0\u5185\u3060\u3051\u306b\u8868\u793a\u3059\u308b\u76ee\u7684\u306a\u3089\u3001\u6a19\u6e96\u306eImage\u3068Mask\u3067\u6b21\u306e\u69cb\u6210\u3092\u691c\u8a0e\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u306e\u65b0\u3057\u3044\u691c\u8a3c\u753b\u50cf\u3068\u3057\u3066\u3001\u4e0a\u306e\u65e7\u753b\u50cf\u3092\u6271\u3046\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n<ol class=\"wp-block-list\"><li>\u7e70\u308a\u8fd4\u3057\u7528\u306e\u753b\u50cf\u3092Sprite\uff082D and UI\uff09\u3068\u3057\u3066\u7528\u610f\u3057\u307e\u3059\u3002\u6700\u5c0f\u4f8b\u306fSprite Mode\uff1dSingle\u3001Border\u306a\u3057\u306e\u753b\u50cf\u306b\u3057\u307e\u3059\u3002<\/li><li>Canvas\u5185\u306b\u67a0\u7528\u306e\u89aaRectTransform\u3092\u4f5c\u308a\u3001\u8868\u793a\u7bc4\u56f2\u3092\u6c7a\u3081\u307e\u3059\u3002\u9577\u65b9\u5f62\u306a\u3089\u89aa\u3078RectMask2D\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u753b\u50cf\u306e\u8f2a\u90ed\u3067\u5207\u308a\u629c\u304f\u5834\u5408\u306f\u3001\u89aa\u3078Image\u3068Mask\u3092\u8ffd\u52a0\u3057\u3001\u30de\u30b9\u30af\u7528Sprite\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li><li>\u89aa\u306e\u5b50\u3068\u3057\u3066\u6a21\u69d8\u7528Image\u3092\u4f5c\u308a\u3001Source Image\u306b\u7e70\u308a\u8fd4\u3057\u753b\u50cf\u3092\u6307\u5b9a\u3001Image Type\u3092Tiled\u306b\u3057\u307e\u3059\u3002\u5b50\u3092\u67a0\u3088\u308a\u5927\u304d\u304f\u3057\u3066\u3001\u7e70\u308a\u8fd4\u3057\u6a21\u69d8\u306e\u67a0\u5916\u304c\u96a0\u308c\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><li>\u89aa\u306e\u753b\u50cf\u3092\u8868\u793a\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306fMask\u306eShow Graphic\u3092\u30aa\u30d5\u306b\u3057\u307e\u3059\u3002\u67a0\u306e\u5f62\u3084\u5b50\u306e\u8868\u793a\u7bc4\u56f2\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001ScrollView\u306a\u3069\u3078\u7d44\u307f\u8fbc\u307f\u307e\u3059\u3002<\/li><\/ol>\n\n\n<p class=\"wp-block-paragraph\">Image\u306e<a href=\"https:\/\/docs.unity3d.com\/Packages\/com.unity.ugui@2.0\/api\/UnityEngine.UI.Image.Type.html\">Tiled<\/a>\u306f\u9818\u57df\u5185\u3078Sprite\u3092\u7e70\u308a\u8fd4\u3059\u65b9\u5f0f\u3067\u3059\u3002\u72ec\u81ea\u30b3\u30fc\u30c9\u3067\u4e0d\u900f\u660e\u5ea6\u30921\u2212opacity\u3078\u53cd\u8ee2\u3059\u308b\u3053\u3068\u3068\u3001\u6a19\u6e96Mask\u306e\u5185\u5074\u30fb\u5916\u5074\u3092\u53cd\u8ee2\u3059\u308b\u3053\u3068\u306f\u540c\u3058\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5207\u308a\u629c\u304d\u306e\u53cd\u8ee2\u304c\u5fc5\u8981\u306a\u3089\u3001\u5c02\u7528\u306e\u5b9f\u88c5\u3068\u30de\u30b9\u30af\u6761\u4ef6\u3092\u5225\u306b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">6\uff0e\u30d6\u30e9\u30fc\uff1a9\u70b9\u5e73\u5747\u3067UI\u306eTexture\u3092\u307c\u304b\u3059<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u306e\u65e2\u5b58\u30b3\u30fc\u30c9\u306f_MainTex\u3092\u4e2d\u5fc3\u3068\u5468\u56f28\u70b9\u3067\u8aad\u307f\u3001\u5408\u8a08\u30929\u3067\u5272\u308b\u51e6\u7406\u3067\u3059\u3002Camera\u6620\u50cf\u3084\u753b\u9762\u306e\u53d6\u5f97\u51e6\u7406\u3001GrabPass\u306f\u542b\u307f\u307e\u305b\u3093\u3002<strong>\u80cc\u666f\u5199\u771f\u3092UI\u753b\u50cf\u3068\u3057\u3066\u6e21\u305b\u3070\u305d\u306e\u5199\u771f\u304c\u5bfe\u8c61\u306b\u306a\u308a\u3001\u30d1\u30cd\u30eb\u3092\u7f6e\u304f\u3060\u3051\u3067\u80cc\u5f8c\u306e3D\u30b7\u30fc\u30f3\u304c\u307c\u3051\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"400\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113195949.png\" alt=\"\u30d6\u30e9\u30fc\u306e\u7d50\u679c\" class=\"wp-image-9633\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113195949.png 720w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/20180113195949-300x167.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u306f\u65e7\u4f8b\u306e\u8cc7\u6599\u3067\u3059\u3002\u5b8c\u5168\u306a\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u304c\u3001uGUI\u7528Stencil\u3084RectMask2D\u306e\u30af\u30ea\u30c3\u30d4\u30f3\u30b0\u51e6\u7406\u306f\u306a\u304f\u3001\u73fe\u5728\u306eUnity\u30fb\u63cf\u753b\u65b9\u5f0f\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u63cf\u753b\u306f\u672a\u691c\u8a3c\u3067\u3059\u3002\u30de\u30b9\u30af\u5bfe\u5fdc\u6e08\u307f\u306e\u6c4e\u7528UI\u30b7\u30a7\u30fc\u30c0\u30fc\u3068\u3057\u3066\u306f\u4f7f\u308f\u305a\u3001\u5358\u72ec\u753b\u50cf\u3067\u7528\u9014\u3092\u78ba\u8a8d\u3059\u308b\u65e7\u4f8b\u3068\u3057\u3066\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-hlsl\" data-lang=\"ShaderLab\"><code>Shader &quot;Unlit\/Transparent Colored Blurred&quot;\n{\n    Properties\n    {\n        _MainTex (&quot;Base (RGB), Alpha (A)&quot;, 2D) = &quot;white&quot; {}\n        _Distance (&quot;Distance&quot;, Float) = 0.015\n    }\nSubShader\n{\n    LOD 100\n    Tags\n    {\n        &quot;Queue&quot; = &quot;Transparent&quot;\n        &quot;IgnoreProjector&quot; = &quot;True&quot;\n        &quot;RenderType&quot; = &quot;Transparent&quot;\n    }\n\n    Cull Off\n    Lighting Off\n    ZWrite Off\n    Fog { Mode Off }\n    Offset -1, -1\n    Blend SrcAlpha OneMinusSrcAlpha\n\n    Pass\n    {\n        CGPROGRAM\n        #pragma vertex vertexProgram\n        #pragma fragment fragmentProgram\n        #include &quot;UnityCG.cginc&quot;\n\n        struct appdata_t\n        {\n            float4 vertex : POSITION;\n            float2 textureCoordinate : TEXCOORD0;\n            fixed4 color : COLOR;\n        };\n\n        struct vertexToFragment\n        {\n            float4 vertex : SV_POSITION;\n            half2 textureCoordinate : TEXCOORD0;\n            fixed4 color : COLOR;\n        };\n\n        sampler2D _MainTex;\n        float4 _MainTex_ST;\n        float _Distance;\n\n        vertexToFragment vertexProgram(appdata_t vertexData)\n        {\n            vertexToFragment output;\n            output.vertex = UnityObjectToClipPos(vertexData.vertex);\n            output.textureCoordinate = TRANSFORM_TEX(vertexData.textureCoordinate, _MainTex);\n            output.color = vertexData.color;\n            return output;\n        }\n\n        fixed4 fragmentProgram(vertexToFragment input) : COLOR\n        {\n            float distance = _Distance;\n            fixed4 computedColor = tex2D(_MainTex, input.textureCoordinate) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x + distance, input.textureCoordinate.y + distance)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x + distance, input.textureCoordinate.y)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x, input.textureCoordinate.y + distance)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x - distance, input.textureCoordinate.y - distance)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x + distance, input.textureCoordinate.y - distance)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x - distance, input.textureCoordinate.y + distance)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x - distance, input.textureCoordinate.y)) * input.color;\n            computedColor += tex2D(_MainTex, half2(input.textureCoordinate.x, input.textureCoordinate.y - distance)) * input.color;\n            computedColor = computedColor \/ 9;\n            return computedColor;\n        }\n        ENDCG\n    }\n}\n}<\/code><\/pre><\/div>\n\n\n<ol class=\"wp-block-list\"><li>\u691c\u8a3c\u7528\u306e.shader\u306b\u5b8c\u5168\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u3001Console\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u304c\u3042\u308b\u5834\u5408\u306fMaterial\u306e\u8abf\u6574\u3078\u9032\u307e\u305a\u3001Editor\u7248\u3068\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u63a7\u3048\u307e\u3059\u3002<\/li><li>\u691c\u8a3c\u7528Material\u306eShader\u3092Unlit\/Transparent Colored Blurred\u306b\u3057\u3066\u3001Image\u3078\u5272\u308a\u5f53\u3066\u307e\u3059\u3002\u6700\u521d\u306fAtlas\u5316\u3057\u3066\u3044\u306a\u3044\u691c\u8a3c\u7528Sprite\u3092\u6307\u5b9a\u3057\u3001Image\u306eColor\u3092\u767d\u30fbAlpha\u30921\u306b\u3057\u307e\u3059\u3002<\/li><li>Distance\u30920\u306b\u3057\u305f\u8868\u793a\u3092\u57fa\u6e96\u306b\u3057\u3001\u5c11\u3057\u305a\u3064\u5897\u3084\u3057\u307e\u3059\u3002\u5143\u753b\u50cf\u3068\u306e\u6bd4\u8f03\u3001\u900f\u660e\u306a\u7e01\u3001Texture\u306e\u7aef\u3001\u30de\u30b9\u30af\u5916\u3078\u306e\u306f\u307f\u51fa\u3057\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n<p class=\"wp-block-paragraph\">Distance\u306f\u753b\u9762\u4e0a\u306e\u30d4\u30af\u30bb\u30eb\u6570\u3067\u306f\u306a\u304fUV\u306e\u305a\u308c\u3067\u3059\u3002\u5358\u7d14\u306a1\u679a\u306e512\u00d7256 Texture\u30670.015\u3092\u4f7f\u3046\u3068\u3001\u5404\u8ef8\u306e\u305a\u308c\u306f\u8a08\u7b97\u4e0a7.68\u00d73.84\u30c6\u30af\u30bb\u30eb\u76f8\u5f53\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u5b9f\u6e2c\u5024\u3067\u306f\u306a\u304f\u5bf8\u6cd5\u304b\u3089\u306e\u63db\u7b97\u3067\u3059\u3002Texture\u5bf8\u6cd5\u3084Atlas\u5185\u306e\u914d\u7f6e\u3067\u610f\u5473\u304c\u5909\u308f\u308b\u305f\u3081\u3001\u540c\u3058\u6570\u5024\u304c\u5e38\u306b\u540c\u3058\u898b\u305f\u76ee\u306e\u307c\u304b\u3057\u5e45\u306b\u306a\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u30029\u56de\u306e\u8aad\u307f\u8fbc\u307f\u304c\u3042\u308b\u3053\u3068\u3060\u3051\u3067\u3001\u7279\u5b9a\u7aef\u672b\u3067\u306e\u51e6\u7406\u6642\u9593\u3084\u63a8\u5968\u500b\u6570\u306f\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u8868\u793a\u304c\u5d29\u308c\u308b\u5834\u5408\u306e\u78ba\u8a8d\u9806<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u76ee\u7684\u30fb\u78ba\u8a8d\u9805\u76ee<\/th><th>\u65b9\u6cd5\u30fb\u5224\u65ad<\/th><\/tr><\/thead><tbody><tr><td>\u30d4\u30f3\u30af\u306b\u306a\u308b\u30fb\u8868\u793a\u3055\u308c\u306a\u3044<\/td><td>Console\u306eShader\u30a8\u30e9\u30fc\u3001include\u3001\u5143\u306e\u5bfe\u5fdc\u7248\u3001\u63cf\u753b\u65b9\u5f0f\u3001Material\u306eShader\u3092\u78ba\u8a8d\u3002Shader\u540d\u3060\u3051\u3092\u5909\u66f4\u3057\u3066\u4e92\u63db\u6027\u304c\u76f4\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3002<\/td><\/tr><tr><td>\u767d\u9ed2\u3084\u8272\u76f8\u304c\u53cd\u6620\u3055\u308c\u306a\u3044<\/td><td>Image\u306b\u76ee\u7684\u306eMaterial\u304c\u5165\u3063\u3066\u3044\u308b\u304b\u3001\u5143\u306eSprite\u30fbImage.Color\u30fb\u5024\u306e\u6e21\u3057\u5148\u3092\u78ba\u8a8d\u3002\u6a19\u6e96Material\u3078\u623b\u3057\u305f\u72b6\u614b\u3068\u3082\u6bd4\u8f03\u3002<\/td><\/tr><tr><td>Mask\u306e\u5916\u3078\u51fa\u308b<\/td><td>\u89aa\u5b50\u95a2\u4fc2\u3068Image\u306eMaskable\u3092\u78ba\u8a8d\u3057\u3001\u6a19\u6e96Material\u3067\u5207\u308a\u629c\u3051\u308b\u304b\u6bd4\u8f03\u3002\u6a19\u6e96\u3067\u6210\u529f\u3059\u308b\u306a\u3089\u72ec\u81eaShader\u306eStencil\uff0fClip\u5bfe\u5fdc\u3092\u78ba\u8a8d\u3002<\/td><\/tr><tr><td>ScrollView\u306e\u5916\u3078\u51fa\u308b<\/td><td>Viewport\u306eMask\u65b9\u5f0f\u3068\u5b50Graphic\u3092\u78ba\u8a8d\u3002Mask\u3068RectMask2D\u3092\u540c\u3058\u4ed5\u7d44\u307f\u3060\u3068\u307f\u306a\u3055\u305a\u3001\u5bfe\u5fdc\u3092\u500b\u5225\u306b\u8abf\u3079\u308b\u3002<\/td><\/tr><tr><td>\u8272\u3092\u5909\u3048\u305f\u3089\u5225\u306eUI\u3082\u5909\u308f\u308b<\/td><td>Material\u306e\u5171\u6709\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5909\u66f4\u5bfe\u8c61\u3092\u78ba\u8a8d\u3002UI\u3054\u3068\u306b\u751f\u6210\u3057\u305f\u5834\u5408\u306f\u6240\u6709\u3068\u7834\u68c4\u3082\u7ba1\u7406\u3059\u308b\u3002<\/td><\/tr><tr><td>Editor\u3060\u3051\u52d5\u304f<\/td><td>\u30d3\u30eb\u30c9\u5148\u3067\u306eShader\u53ce\u9332\u3001\u5fc5\u8981\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u3001Shader.Find\u306e\u540d\u524d\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u7d50\u679c\u3092\u78ba\u8a8d\u3002Editor\u3067\u306e\u6210\u529f\u3060\u3051\u3092\u5bfe\u5fdc\u6e08\u307f\u3068\u3057\u306a\u3044\u3002<\/td><\/tr><tr><td>\u307c\u304b\u3057\u304c\u80cc\u666f\u3078\u53cd\u6620\u3055\u308c\u306a\u3044<\/td><td>\u5165\u529b\u306f_MainTex\u304b\u30b7\u30fc\u30f3\u6620\u50cf\u304b\u3092\u78ba\u8a8d\u3002\u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306b\u30b7\u30fc\u30f3\u53d6\u5f97\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u305f\u5b9f\u88c5\u3084\u6bd4\u8f03\u7d50\u679c\u306f\u63b2\u8f09\u3057\u3066\u3044\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u516c\u5f0f\u8cc7\u6599\u3067\u306f<a href=\"https:\/\/docs.unity3d.com\/Packages\/com.unity.ugui@2.0\/manual\/script-Mask.html\">Mask\u306fStencil\u3092\u4f7f\u7528<\/a>\u3057\u3001<a href=\"https:\/\/docs.unity3d.com\/Packages\/com.unity.ugui@2.0\/manual\/script-RectMask2D.html\">RectMask2D\u306f\u5171\u5e73\u9762\u306e2D\u8981\u7d20\u3092\u77e9\u5f62\u5185\u306b\u5236\u9650<\/a>\u3057\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u300c\u753b\u50cf\u304c\u4e00\u5ea6\u8868\u793a\u3067\u304d\u305f\u300d\u3060\u3051\u3067\u306f\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093\u3002\u672a\u691c\u8a3c\u306e\u307e\u307e\u65e2\u5b58\u753b\u9762\u3078\u9069\u7528\u305b\u305a\u3001\u30de\u30b9\u30af\u306a\u3057\u30fbMask\u30fbRectMask2D\u30fbCanvasGroup\u306eAlpha\u30fb\u5bfe\u8c61\u30d3\u30eb\u30c9\u3092\u5206\u3051\u3066\u7d50\u679c\u3092\u6b8b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u63b2\u8f09\u30b3\u30fc\u30c9\u3068\u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u8a18\u4e8b\u7528\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/unity\/unity-ui-shader\">GitHub\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/a>\u306b\u306f\u3001\u660e\u308b\u3055\u30fb\u5358\u8272\u306e\u5909\u66f4\u7528\u65ad\u7247\u3068\u3001\u307c\u304b\u3057\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u30026\u4f8b\u3059\u3079\u3066\u306e\u5b8c\u6210Shader\u3092\u53ce\u9332\u3057\u305f\u914d\u5e03\u7269\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30b0\u30ec\u30fc\u30b9\u30b1\u30fc\u30eb\u30fb\u5358\u8272\u30fb\u8272\u76f8\u306f\u5404\u914d\u5e03\u5143\u3001\u72ec\u81eaUI\/TextureMask\u306f\u4e0a\u8a18\u306e\u4e0d\u8db3\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u753b\u50cf\u306e\u53d6\u5f97\u306f<a href=\"https:\/\/cg-method.com\/unity\/unity-read-sprite\/\">Image\u30fbResources\u30fbRawImage\u3067\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3080\u624b\u9806<\/a>\u3001\u5f62\u3084\u5bf8\u6cd5\u306f<a href=\"https:\/\/cg-method.com\/unity\/unity-ugui-aspect-ratio-fitter\/\">UI\u753b\u50cf\u306e\u6bd4\u7387\u3092\u4fdd\u3064\u8a2d\u5b9a<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u52b9\u679c\u7528Shader\u3068UI\u306e\u914d\u7f6e\u30fb\u64cd\u4f5c\u306e\u554f\u984c\u3092\u5206\u3051\u3066\u8abf\u3079\u3066\u304f\u3060\u3055\u3044\u3002ScrollView\u306eViewport\u306f\u6b21\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/03\/unity-ugui-make-scrollview-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-ugui-make-scrollview\/\">Unity uGUI\u30b9\u30af\u30ed\u30fc\u30eb\u30d3\u30e5\u30fc\u306e\u4f5c\u308a\u65b9\uff5c2\u5217\u30ea\u30b9\u30c8\u3068\u52d5\u304b\u306a\u3044\u3068\u304d\u306e\u78ba\u8a8d<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Scroll Rect\u3001Viewport\u3001Content\u3067\u7e26\u30b9\u30af\u30ed\u30fc\u30eb\u306e2\u5217\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u624b\u9806\u3002\u30de\u30b9\u30af\u3001\u5165\u529b\u3001Content Size Fitter\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u30d0\u30fc\u306e\u78ba\u8a8d\u3092\u89e3\u8aac\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<p class=\"wp-block-paragraph\">3D\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u30a2\u30cb\u30e1\u8abf\u306b\u63cf\u753b\u3059\u308b\u30c8\u30a5\u30fc\u30f3\u30b7\u30a7\u30fc\u30c0\u30fc\u306f\u3001UI\u753b\u50cf\u306e\u52a0\u5de5\u3068\u76ee\u7684\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u30e2\u30c7\u30eb\u306e\u8868\u73fe\u3092\u8abf\u3079\u305f\u3044\u5834\u5408\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/01\/unity-chan-toon-shader-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-chan-toon-shader\/\">Unity\u2502\u7c21\u5358\u8a2d\u5b9a\uff01\u30e6\u30cb\u30c6\u30a3\u3061\u3083\u3093\u30c8\u30a5\u30fc\u30f3\u30b7\u30a7\u30fc\u30c0\u30fc\u3067\u30a2\u30cb\u30e1\u8abf\u306b\u3059\u308b\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30e6\u30cb\u30c6\u30a3\u3061\u3083\u3093\u30c8\u30a5\u30fc\u30f3\u30b7\u30a7\u30fc\u30c0\u30fc\uff08UTS\uff09\u3092\u4f7f\u3063\u3066\u30013D\u30e2\u30c7\u30eb\u3092\u30a2\u30cb\u30e1\u8abf\u306b\u3059\u308b\u8a2d\u5b9a\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u5f71\u7528\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u4f5c\u6210\u304b\u3089\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u8a2d\u5b9a\u307e\u3067\u3001\u57fa\u672c&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">uGUI\u3067\u306eUI\u5236\u4f5c\u306f\u3001\u307b\u304b\u306b\u3082\u66f8\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/08\/unity-ugui-font-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-ugui-font\/\">Unity uGUI\u306e\u30d5\u30a9\u30f3\u30c8\u8a2d\u5b9a\uff5c\u65e7Text\u30fbTextMeshPro\u30fb\u30a2\u30a4\u30b3\u30f3\u306e\u4f7f\u3044\u5206\u3051<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">uGUI\u306e\u65e7Text\u3068TextMeshPro\u306e\u9055\u3044\u3001\u30ea\u30c3\u30c1\u30c6\u30ad\u30b9\u30c8\u3001Font Asset\u3001ShoeBox\u306e\u65e7\u624b\u9806\u3001TTC\u3001Font Awesome\u306e\u8a2d\u5b9a\u3068\u6587\u5b57\u6b20\u3051\u306e\u78ba\u8a8d\u3092\u89e3\u8aac\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/12\/convert-adobexd-to-unity-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/convert-adobexd-to-unity\/\">Adobe XD\u304b\u3089Unity\u3078UI\u3092\u79fb\u30593\u3064\u306e\u65b9\u6cd5\u3010\u65e7\u7248\u30fb\u914d\u5e03\u72b6\u6cc1\u3011<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">XD\u304b\u3089Unity\u3078\u306e\u65e7\u5909\u63db\u624b\u9806\u3092\u3001PSD\u30fbBaum2\u30fbXDA\u3067\u6574\u7406\u3002\u914d\u5e03\u72b6\u6cc1\u3001\u5bfe\u5fdc\u7248\u3001\u753b\u50cf\u540d\u3001\u79fb\u884c\u5f8c\u306e\u78ba\u8a8d\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/12\/non-code-switch-button-display-state-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/non-code-switch-button-display-state\/\">Unity\u3067\u30dc\u30bf\u30f3\u304b\u3089UI\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\uff5cSetActive\u3068Animator<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u305b\u305aButton\u306eOn Click()\u3067UI\u3092\u958b\u304f\u30fb\u9589\u3058\u308b\u8a2d\u5b9a\u3068\u3001Animator\u306eTrigger\u3067\u4ea4\u4e92\u306b\u5207\u308a\u66ff\u3048\u308b\u69cb\u6210\u3092\u89e3\u8aac\u3002\u65e7SepiaTone\u4f5c\u4f8b\u3068\u5fa9\u5e30\u3067\u304d\u306a\u3044\u539f\u56e0\u3082\u6574\u7406\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/08\/ugui-basic-function-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/ugui-basic-function\/\">Unity uGUI\u306e\u57fa\u672c\u8a2d\u5b9a7\u9805\u76ee\uff5c\u6587\u5b57\u30fb\u914d\u7f6e\u30fb\u753b\u50cf\u30fb\u63cf\u753b\u8ca0\u8377<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">uGUI\u306e\u6587\u5b57\u306e\u307c\u3084\u3051\u3001\u30a2\u30f3\u30ab\u30fc\u3001Tiled\u3001Canvas Scaler\u3001\u5ea7\u6a19\u3001\u63cf\u753b\u8ca0\u8377\u306e\u78ba\u8a8d\u9806\u3092\u89e3\u8aac\u3002\u65e7\u753b\u9762\u3068\u73fe\u5728\u306e\u516c\u5f0f\u4ed5\u69d8\u3092\u5206\u3051\u3066\u6574\u7406\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n","protected":false},"excerpt":{"rendered":"<p>Unity\u306eUI\u753b\u50cf\u306b\u4f7f\u3046\u660e\u308b\u3055\u30fb\u767d\u9ed2\u30fb\u5358\u8272\u30fb\u8272\u76f8\u30fb\u6a21\u69d8\u30fb\u307c\u304b\u3057\u306e\u65e7\u4f8b\u3092\u6574\u7406\u3002\u6a19\u6e96\u6a5f\u80fd\u3068\u306e\u4f7f\u3044\u5206\u3051\u3001Material\u8a2d\u5b9a\u3001Mask\u3068RectMask2D\u3001\u80cc\u666f\u307c\u304b\u3057\u3068\u306e\u9055\u3044\u3001\u5bfe\u5fdc\u7248\u306e\u78ba\u8a8d\u70b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":21692,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Unity\u306eUI\u30b7\u30a7\u30fc\u30c0\u30fc6\u4f8b\uff5c\u753b\u50cf\u52b9\u679c\u30fb\u307c\u304b\u3057\u3068Mask\u306e\u78ba\u8a8d","ssp_meta_description":"Unity\u306eUI\u753b\u50cf\u306b\u4f7f\u3046\u660e\u308b\u3055\u30fb\u767d\u9ed2\u30fb\u5358\u8272\u30fb\u8272\u76f8\u30fb\u6a21\u69d8\u30fb\u307c\u304b\u3057\u306e\u65e7\u4f8b\u3092\u6574\u7406\u3002\u6a19\u6e96\u6a5f\u80fd\u3068\u306e\u4f7f\u3044\u5206\u3051\u3001Material\u8a2d\u5b9a\u3001Mask\u3068RectMask2D\u3001\u80cc\u666f\u307c\u304b\u3057\u3068\u306e\u9055\u3044\u3001\u5bfe\u5fdc\u7248\u306e\u78ba\u8a8d\u70b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002"},"categories":[20],"tags":[],"class_list":["post-17307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ui"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/comments?post=17307"}],"version-history":[{"count":10,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17307\/revisions"}],"predecessor-version":[{"id":22257,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17307\/revisions\/22257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media\/21692"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media?parent=17307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/categories?post=17307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/tags?post=17307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}