{"id":17440,"date":"2018-08-30T15:19:59","date_gmt":"2018-08-30T06:19:59","guid":{"rendered":"https:\/\/cg-method.com\/?p=17440"},"modified":"2026-01-04T20:41:49","modified_gmt":"2026-01-04T11:41:49","slug":"unity-texture","status":"publish","type":"post","link":"https:\/\/cg-method.com\/unity\/unity-texture\/","title":{"rendered":"Unity\u2502\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\uff01\u30c6\u30af\u30b9\u30c1\u30e3\u753b\u50cf\u306b\u95a2\u3059\u308bTIPS 3\u9078"},"content":{"rendered":"\n<p>Unity\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u753b\u50cf\u306b\u95a2\u3059\u308bTIPS\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5bb9\u91cf\u524a\u6e1b\u306e\u305f\u3081\u306e\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3001PVRTC\u306e\u753b\u8cea\u6539\u5584\u3001\u5727\u7e2e\u5f62\u5f0f\u306e\u30b5\u30a4\u30ba\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u753b\u50cf\u7d20\u6750\u306e\u6e1b\u8272\u306e\u305f\u3081\u306e\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u5bb9\u91cf\u7bc0\u7d04\u306e\u305f\u3081\u306b\u753b\u50cf\u7d20\u6750\u306f\u6e1b\u8272\u3057\u305f\u3044\u3067\u3059\u304c\u3001UI\u306f\u3067\u304d\u308b\u3060\u3051\u304d\u308c\u3044\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u534a\u5206\u306e\u30b5\u30a4\u30ba\u3067\u52a3\u5316\u3082\u5c11\u306a\u3044RGBA16bit\u3092\u9078\u629e\u3059\u308b\u5834\u5408\u3001\u305d\u306e\u307e\u307e\u5909\u63db\u3059\u308b\u3068\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u90e8\u5206\u306b\u30de\u30c3\u30cf\u30d0\u30f3\u30c9\u304c\u76ee\u7acb\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3092\u4e8b\u524d\u306b\u884c\u3046\u3053\u3068\u3067\u3001\u6e1b\u8272\u5f8c\u3082\u304d\u308c\u3044\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Unity\u3067\u3082\u30a4\u30f3\u30dd\u30fc\u30c8\u6642\u306b\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3092\u304b\u3051\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u624b\u9806<\/h3>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>\u4e0b\u8a18\u30ea\u30f3\u30af\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001Assets\/Editor\u306e\u4e2d\u306b\u300cTextureModifier.cs\u300d\u3092\u5165\u308c\u308b<\/li>\n\n\n\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u958b\u304d\u3001<code>importer.textureType = TextureImporterType.GUI;<\/code>\u3092<code>importer.textureType = TextureImporterType.Advanced;<\/code>\u306b\u5909\u66f4<\/li>\n\n\n\n<li>\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3057\u305f\u3044\u753b\u50cf\uff08.png\uff09\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u300c\u25cb\u25cb\u25cbDither.png\u300d\u306e\u3088\u3046\u306b\u672b\u5c3e\u3092<strong>Dither<\/strong>\u306b\u3057\u3066Assets\u306b\u5165\u308c\u308b<\/li>\n\n\n\n<li>\u30a4\u30f3\u30dd\u30fc\u30c8\u6642\u306b\u81ea\u52d5\u3067\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3055\u308c\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff1a<a href=\"https:\/\/github.com\/keijiro\/unity-dither4444\">https:\/\/github.com\/keijiro\/unity-dither4444<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"294\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/02\/20160229000659-768x294.png\" alt=\"\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u306e\u6bd4\u8f03\" class=\"wp-image-10252\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/02\/20160229000659-768x294.png 768w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/02\/20160229000659-300x115.png 300w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/02\/20160229000659.png 1024w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>Gimp\u3067\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3057\u305f\u3082\u306e\u3068\u6bd4\u8f03\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\uff08unity-dither4444\uff09\u306e\u65b9\u304c\u304d\u308c\u3044\u3067\u3057\u305f\u3002\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3082\u7c21\u5358\u306a\u306e\u3067\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PVRTC\u306e\u753b\u50cf\u3092\u304d\u308c\u3044\u306b\u8868\u793a\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u30c6\u30af\u30b9\u30c1\u30e3\u5727\u7e2e\u5f62\u5f0fPVRTC\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u753b\u50cf\u306e\u7aef\u304c\u6c5a\u304f\u306a\u3063\u305f\u308a\u3001\u30a2\u30eb\u30d5\u30a1\u306e\u629c\u3051\u90e8\u5206\u306b\u30b4\u30df\u304c\u3064\u3044\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u76ee\u7acb\u3064\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3092\u8a66\u3059\u3068\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6cd51\uff1a\u900f\u660e\u90e8\u5206\u306e\u6700\u9069\u5316<\/h3>\n\n\n\n<p>\u900f\u660e\u90e8\u5206\u3092\u4e00\u5ea6\u3001\u5f8c\u308d\u306e\u753b\u306b\u5bfe\u3057\u3066\u6700\u9069\u306a\u8272\u3067\u5857\u308a\u3064\u3076\u3057\u3066\u304b\u3089\u900f\u660e\u306b\u3057\u3066PNG\u3067\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>\u4e0b\u8a18\u30ea\u30f3\u30af\u304b\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li>\n\n\n\n<li>\u547d\u540d\u306e\u6700\u5f8c\u3092\u300cPVR.png\u300d\u306b\u3059\u308b<\/li>\n\n\n\n<li>\u30a4\u30f3\u30dd\u30fc\u30c8\u6642\u306b\u51e6\u7406\u304c\u884c\u308f\u308c\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff1a<a href=\"https:\/\/github.com\/keijiro\/unity-pvr-cleaner\">https:\/\/github.com\/keijiro\/unity-pvr-cleaner<\/a><\/p>\n\n\n\n<p>\u203b\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3044\u3068\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u6ce8\u610f<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6cd52\uff1a\u30a2\u30eb\u30d5\u30a1\u30de\u30b9\u30af\u3092\u4f7f\u7528<\/h3>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>\u4e0b\u8a18\u30ea\u30f3\u30af\u304b\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li>\n\n\n\n<li>Switch Platform\u3067iOS\u306b\u5207\u308a\u66ff\u3048<\/li>\n\n\n\n<li>\u547d\u540d\u306e\u6700\u5f8c\u3092\u300cwith alpha.png\u300d\u306b\u3059\u308b<\/li>\n\n\n\n<li>\u30a4\u30f3\u30dd\u30fc\u30c8\u6642\u306b\u51e6\u7406\u304c\u884c\u308f\u308c\u308b<\/li>\n\n\n\n<li>\u30b7\u30a7\u30fc\u30c0\u30fc\u3092SpriteWithMask\u306b\u3057\u3066\u3001\u30de\u30b9\u30af\u3068\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u30a2\u30b5\u30a4\u30f3<\/li>\n\n\n\n<li>Color\u3092RGBA\uff08127, 127, 127, 127\uff09\u306b\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff1a<a href=\"https:\/\/github.com\/keijiro\/unity-alphamask\">https:\/\/github.com\/keijiro\/unity-alphamask<\/a><\/p>\n\n\n\n<p>\u203b\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u3059\u3079\u3066256\u306b\u306a\u3063\u3066\u3044\u3066\u5143\u306e\u8272\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001127\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d50\u679c<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"293\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/03\/20160301103455-768x293.jpg\" alt=\"PVRTC\u6539\u5584\u306e\u6bd4\u8f03\" class=\"wp-image-10250\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/03\/20160301103455-768x293.jpg 768w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/03\/20160301103455-300x115.jpg 300w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/03\/20160301103455.jpg 1024w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65b9\u6cd51<\/strong>\uff1a\u4e0a\u90e8\u306b\u3042\u3063\u305f\u76ee\u7acb\u3063\u305f\u30b4\u30df\u304c\u53d6\u308a\u9664\u304b\u308c\u305f\u3002\u305f\u3060\u3057\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u304c\u30cd\u30c3\u30af<\/li>\n\n\n\n<li><strong>\u65b9\u6cd52<\/strong>\uff1a\u30de\u30b9\u30af\u3092\u4f7f\u3046\u3068\u30af\u30ea\u30a2\u306b\u306a\u308a\u3059\u304e\u3066\u3001\u610f\u56f3\u3057\u305f\u30dc\u30b1\u5177\u5408\u304c\u5931\u308f\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u305f\u3060\u3057ETC\uff08Android\uff09\u3067\u3082\u4f7f\u3048\u308b\u65b9\u6cd5\u306a\u306e\u3067\u6709\u52b9<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u5727\u7e2e\u5f62\u5f0f\u306e\u30b5\u30a4\u30ba\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5727\u7e2e\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u6c42\u3081\u65b9<\/h3>\n\n\n\n<p>\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u5408\u8a08\u30b5\u30a4\u30ba\u306e\u6c42\u3081\u65b9\u306f<strong>\u5e45 \u00d7 \u9ad8\u3055 \u00d7 bpp<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u30b5\u30f3\u30d7\u30eb<\/h3>\n\n\n\n<p>\u203b\u30b5\u30a4\u30ba\u306f2\u306e\u3079\u304d\u4e57\u306e\u6b63\u65b9\u5f62\u3067Mipmap\u3092\u542b\u3080\u3082\u306e\u3067\u3059\u3002PVRTC\u3068\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u304c\u3001ETC\u7b49\u3082\u540c\u30b5\u30a4\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30b5\u30a4\u30ba\uff08Pixel\uff09<\/th><th>RGBA 32bit<\/th><th>RGBA 16bit<\/th><th>PVRTC 4bits<\/th><th>PVRTC 4bits\uff08imesta7\uff09<\/th><\/tr><\/thead><tbody><tr><td>2048\u00d72048<\/td><td>21.3MB<\/td><td>10.7MB<\/td><td>2.7MB<\/td><td>2MB<\/td><\/tr><tr><td>1024\u00d71024<\/td><td>5.3MB<\/td><td>2.7MB<\/td><td>0.7MB<\/td><td>0.5MB<\/td><\/tr><tr><td>512\u00d7512<\/td><td>1.3MB<\/td><td>682.7KB<\/td><td>170.8KB<\/td><td>128KB<\/td><\/tr><tr><td>256\u00d7256<\/td><td>341.3KB<\/td><td>170.7KB<\/td><td>42.8KB<\/td><td>32KB<\/td><\/tr><tr><td>128\u00d7128<\/td><td>85.3KB<\/td><td>42.8KB<\/td><td>10.7KB<\/td><td>8KB<\/td><\/tr><tr><td>64\u00d764<\/td><td>21.3KB<\/td><td>10.7KB<\/td><td>2.7KB<\/td><td>2KB<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Mipmap\u306b\u3064\u3044\u3066<\/h3>\n\n\n\n<p>Mipmap\u3068\u306f\u5404\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u540c\u3058\u753b\u50cf\u3092\u5f90\u3005\u306b\u4f4e\u89e3\u50cf\u5ea6\u306b\u3057\u305f\u3082\u306e\u3067\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u304c\u753b\u9762\u4e0a\u3067\u975e\u5e38\u306b\u5c0f\u3055\u3044\u5834\u5408\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5404\u30ec\u30d9\u30eb\u306e\u9ad8\u3055\u3068\u5e45\u306f\u3001\u76f4\u524d\u306e\u30ec\u30d9\u30eb\u3088\u308a2\u306e\u7d2f\u4e57\u3060\u3051\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1a128\u00d7128pixel\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u306e\u5834\u5408\u300164\u00d764\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u304c\u751f\u6210\u3055\u308c\u308b<\/p>\n\n\n\n<p>UI\u306a\u3069MipMap\u304c\u5fc5\u8981\u306a\u3044\u753b\u50cf\u306f\u751f\u6210\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059\u3068\u8efd\u91cf\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5727\u7e2e\u7387\u306e\u76ee\u5b89<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>RGBA32bit \u2192 RGBA16bit\uff1a\u5727\u7e2e\u7387\u7d0450%<\/li>\n\n\n\n<li>RGBA16bit \u2192 PVRTC\uff1a\u5727\u7e2e\u7387\u7d0425%<\/li>\n\n\n\n<li>PVRTC \u2192 PVRTC\uff08imesta7\uff09\uff1a\u5727\u7e2e\u7387\u7d0475%<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>Mipmap\uff1aUI\u306a\u3069\u4e0d\u8981\u306a\u5834\u5408\u306fOFF\u306b\u3057\u3066\u8efd\u91cf\u5316<\/p>\n\n\n\n<p>\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\uff1aRGBA16bit\u5909\u63db\u6642\u306e\u30de\u30c3\u30cf\u30d0\u30f3\u30c9\u3092\u8efd\u6e1b<\/p>\n\n\n\n<p>PVRTC\u6700\u9069\u5316\uff1a\u900f\u660e\u90e8\u5206\u306e\u51e6\u7406\u3084\u30a2\u30eb\u30d5\u30a1\u30de\u30b9\u30af\u3067\u30b4\u30df\u3092\u9664\u53bb<\/p>\n\n\n\n<p>\u5727\u7e2e\u5f62\u5f0f\u9078\u629e\uff1a\u7528\u9014\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u5f62\u5f0f\u3092\u9078\u3073\u5bb9\u91cf\u524a\u6e1b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity\u306e\u30c6\u30af\u30b9\u30c1\u30e3\u753b\u50cf\u306b\u95a2\u3059\u308bTIPS\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002 \u5bb9\u91cf\u524a\u6e1b\u306e\u305f\u3081\u306e\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u3001PVRTC\u306e\u753b\u8cea\u6539\u5584\u3001\u5727\u7e2e\u5f62\u5f0f\u306e\u30b5\u30a4\u30ba\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u753b\u50cf\u7d20\u6750\u306e\u6e1b\u8272\u306e\u305f\u3081\u306e\u30c7\u30a3\u30b6\u30ea\u30f3\u30b0\u51e6\u7406\u306b\u3064\u3044\u3066 \u5bb9\u91cf\u7bc0\u7d04\u306e\u305f\u3081\u306b\u753b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21677,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[16],"tags":[],"class_list":["post-17440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2d"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17440","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=17440"}],"version-history":[{"count":2,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17440\/revisions"}],"predecessor-version":[{"id":21659,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/17440\/revisions\/21659"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media\/21677"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media?parent=17440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/categories?post=17440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/tags?post=17440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}