Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

GameObject.SetActive and children components

Discussion in 'Scripting' started by eco_bach, Sep 9, 2019.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Can anyone tell me if setting a gameObject to inactive via GameObject.SetActive(false) will also inactive ALL children and children script-components?
     
  2. IcePhoenix_0101

    IcePhoenix_0101

    Joined:
    Sep 9, 2017
    Posts:
    32