Search Unity

How to disable a guiText child through code?

Discussion in 'Immediate Mode GUI (IMGUI)' started by RayDawg, Oct 20, 2014.

  1. RayDawg

    RayDawg

    Joined:
    Mar 19, 2013
    Posts:
    108
    I have two guiText objects, one parented to the other, I can disable the parent, but the child's guiText component still appears on the game screen. I tried getcomponentinchildren and that didn't work, how should I disable it?