{"id":802,"date":"2016-02-12T11:41:41","date_gmt":"2016-02-12T02:41:41","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=802"},"modified":"2016-02-12T11:41:41","modified_gmt":"2016-02-12T02:41:41","slug":"%e3%83%88%e3%82%b0%e3%83%ab%e3%83%9c%e3%82%bf%e3%83%b3%e3%82%92onoff%e3%81%a7halo%e3%82%92%e5%87%ba%e3%81%99","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=802","title":{"rendered":"\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3092ON\/OFF\u3067Halo\u3092\u51fa\u3059"},"content":{"rendered":"<p>Halo\u306f\u30e9\u30a4\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3042\u3066\u308b\u3068\u307c\u3046\u3063\u3068\u5149\u3063\u305f\u96f0\u56f2\u6c17\u3092\u51fa\u305b\u307e\u3059\uff0e\uff08component&gt;effect\u306b\u306f\u3044\u3063\u3066\u3044\u307e\u3059\uff09<\/p>\n<p>\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u611f\u3092\u51fa\u3059\u305f\u3081\u306bHalo\u3092ON\/OFF\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" title=\"btnshowHalo.cs\">using UnityEngine;\r\nusing System.Collections;\r\nusing UnityEngine.UI;\r\n\r\npublic class btnshowHalo : MonoBehaviour {\r\n\tpublic GameObject lightHalo;\/\/assign activate object\r\n\r\n\tpublic Toggle toggleBtn;\/\/for assign toggle btn\r\n\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n\t\tlightHalo.SetActive(false);\/\/initialize\r\n\t}\r\n\t\r\n\t\/\/ Update is called once per frame\r\n\tvoid Update () {\r\n\t\r\n\t}\r\n\r\n\r\n\tpublic void showHalo(){\r\n\r\n\t\tif (toggleBtn.isOn) {\r\n\t\t\tlightHalo.SetActive (true); \/\/show halo\r\n\t\t} else {\r\n\t\t\tlightHalo.SetActive (false); \/\/hide halo\r\n\t\t}\r\n\t}\r\n}\r\n<\/pre>\n<p>\u30a2\u30b5\u30a4\u30f3\u3059\u308b\u3068\uff0c\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3068\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3059\u308b\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u30a2\u30b5\u30a4\u30f3\u3057\u307e\u3059\uff0e\u30dc\u30bf\u30f3\u62bc\u3055\u308c\u305f\u6642\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\u3092\u3084\u3063\u3066\u5b8c\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Halo\u306f\u30e9\u30a4\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3042\u3066\u308b\u3068\u307c\u3046\u3063\u3068\u5149\u3063\u305f\u96f0\u56f2\u6c17\u3092\u51fa\u305b\u307e\u3059\uff0e\uff08component&gt;effect\u306b\u306f\u3044\u3063\u3066\u3044\u307e\u3059\uff09 \u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u611f\u3092\u51fa\u3059\u305f\u3081\u306bHalo\u3092ON\/OFF\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059 &#038; &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=802\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30c8\u30b0\u30eb\u30dc\u30bf\u30f3\u3092ON\/OFF\u3067Halo\u3092\u51fa\u3059<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,2],"tags":[],"class_list":["post-802","post","type-post","status-publish","format-standard","hentry","category-c","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=802"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}