{"id":1728,"date":"2016-08-25T16:16:59","date_gmt":"2016-08-25T07:16:59","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=1728"},"modified":"2016-08-25T16:16:59","modified_gmt":"2016-08-25T07:16:59","slug":"prefab%e3%81%aetoggle%e3%82%92get%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=1728","title":{"rendered":"Prefab\u306eToggle\u3092Get\u3059\u308b"},"content":{"rendered":"<p>\u3044\u305d\u3044\u3067\u3044\u308b\u306e\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u307f<\/p>\n<pre class=\"lang:default decode:true \">using UnityEngine;\r\nusing System.Collections;\r\nusing UnityEngine.UI;\r\n\r\npublic class prefabinfoSend : MonoBehaviour {\r\nToggle mytoggle;\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n\t\tGameObject toggleObj = transform.FindChild(\"Toggledesu\").gameObject;\r\n\t\tmytoggle = toggleObj.GetComponent&lt;Toggle&gt; ();\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 pressed(){\r\n\t\tstring objName = this.name;\r\n\t\t\/\/Toggle mytoggle = this.GetComponent&lt;Toggle&gt; ();\r\n\t\/\/\tmytoggle.isOn;\r\n\r\n\r\n\r\n\t\tDebug.Log (objName);\r\n\t\tDebug.Log (mytoggle.isOn);\r\n\t}\r\n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u305d\u3044\u3067\u3044\u308b\u306e\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u307f using UnityEngine; using System.Collections; using UnityEngine.UI; public class prefabinfoSend &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=1728\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Prefab\u306eToggle\u3092Get\u3059\u308b<\/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-1728","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\/1728","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=1728"}],"version-history":[{"count":1,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1728\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1728\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}