Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

How to access and change values in instantiated child toggle

Discussion in 'Prefabs' started by CDAfonso, Oct 9, 2019.

  1. CDAfonso

    CDAfonso

    Joined:
    Sep 16, 2019
    Posts:
    26
    Hello!
    I need to access a toggle inside an instantiated gameObject to get the state and change it if necessary.
    Also i need to know how many clones were created (it varies) and access each one of them.
    Can you help me?

    Thank you!
     
  2. CDAfonso

    CDAfonso

    Joined:
    Sep 16, 2019
    Posts:
    26
    Anyone?
     
  3. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,917
    Well, post your code what you're doing, we are not reading minds here, unfortunately.