{"id":11,"date":"2014-10-13T17:54:16","date_gmt":"2014-10-13T08:54:16","guid":{"rendered":"http:\/\/t.matme.info\/blog\/?p=11"},"modified":"2014-10-13T21:08:25","modified_gmt":"2014-10-13T12:08:25","slug":"animation%e3%81%a7ngui%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e7%ae%a1%e7%90%86%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/t.matme.info\/blog\/?p=11","title":{"rendered":"Animation\u3067NGUI\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7ba1\u7406\u3059\u308b"},"content":{"rendered":"\r\n<p>NGUI\u3092\u4f7f\u7528\u3059\u308b\u306b\u5f53\u305f\u3063\u3066\u3001UIWidget\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u30bb\u30c3\u30c8\u3067\u4f7f\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3002<br \/> NGUIWidgetColor.cs\u3067\u4fdd\u5b58\u3057\u3066\u4f7f\u3046\u3002<br \/> \u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u30d5\u30a7\u30fc\u30c9\u30a2\u30a6\u30c8\u3092\u30a2\u30cb\u30e1\u30fc\u30bf\u30fc\u3067\u884c\u3046\u3068\u304d\u306b\u4fbf\u5229\u3002<br \/> \uff08\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8\u304c\u3042\u3063\u305f\u306e\u3060\u3051\u308c\u3069\u3001\u30ea\u30f3\u30af\u304c\u5206\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\uff09<\/p>\r\n\r\n[php]\r\nusing UnityEngine;\r\nusing System.Collections;\r\n\r\n[ExecuteInEditMode()]\/\/ExecuteInEditMode\u3092\u4f7f\u3046\u3068\u7de8\u96c6\u4e2d\u3082\u51e6\u7406\u3092\u5b9f\u884c\u53ef\u80fd\r\npublic class NGUIWidgetColor : MonoBehaviour {\r\n\r\n\tpublic Color\tcolor = Color.white;\r\n\tpublic UIWidget target = null;\r\n\r\n\tvoid LateUpdate () {\r\n\t\tif(target == null){\r\n\t\t\ttarget = this.GetComponent&lt;UIWidget&gt;();\r\n\t\t}\r\n\r\n\t\tif(target){\r\n\t\t\ttarget.color = color;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tDebug.LogError(&quot;\u5bfe\u8c61\u306eUIWidget\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f&quot;, this);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n[\/php]\r\n\r\n<div id=\"attachment_28\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/t.matme.info\/blog\/wp-content\/uploads\/2014\/10\/101301.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-28\" class=\"lazy wp-image-28 size-full\" src=\"http:\/\/t.matme.info\/blog\/wp-content\/plugins\/wp-images-lazy-loading\/images\/grey.gif\" data-original=\"http:\/\/t.matme.info\/blog\/wp-content\/uploads\/2014\/10\/101301.jpg\" alt=\"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30a4\u30e1\u30fc\u30b8\" width=\"630\" height=\"414\" \/><p id=\"caption-attachment-28\" class=\"wp-caption-text\"><noscript><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-28 size-full\" src=\"http:\/\/t.matme.info\/blog\/wp-content\/uploads\/2014\/10\/101301.jpg\" alt=\"\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30a4\u30e1\u30fc\u30b8\" width=\"630\" height=\"414\" srcset=\"http:\/\/t.matme.info\/blog\/wp-content\/uploads\/2014\/10\/101301.jpg 630w, http:\/\/t.matme.info\/blog\/wp-content\/uploads\/2014\/10\/101301-300x197.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/noscript><\/a> \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30a4\u30e1\u30fc\u30b8<\/p><\/div>\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>NGUI\u3092\u4f7f\u7528\u3059\u308b\u306b\u5f53\u305f\u3063\u3066\u3001UIWidget\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u30bb\u30c3\u30c8\u3067\u4f7f\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3002 NGUIWidgetColor.<\/p>\n","protected":false},"author":1,"featured_media":32,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,6,17,4],"class_list":["post-11","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ngui","tag-animation","tag-animator","tag-ngui","tag-unity"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":17,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":31,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/31"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=\/wp\/v2\/media\/32"}],"wp:attachment":[{"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/t.matme.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}