いそいでいるのでスクリプトのみ
using UnityEngine; using System.Collections; using UnityEngine.UI; public class prefabinfoSend : MonoBehaviour { Toggle mytoggle; // Use this for initialization void Start () { GameObject toggleObj = transform.FindChild("Toggledesu").gameObject; mytoggle = toggleObj.GetComponent<Toggle> (); } // Update is called once per frame void Update () { } public void pressed(){ string objName = this.name; //Toggle mytoggle = this.GetComponent<Toggle> (); // mytoggle.isOn; Debug.Log (objName); Debug.Log (mytoggle.isOn); } }