Search Unity

Disable TextMeshProUGUI without disabling GameObject

Discussion in 'UGUI & TextMesh Pro' started by oluwaseyeayinla, Mar 18, 2019.

  1. oluwaseyeayinla

    oluwaseyeayinla

    Joined:
    Mar 22, 2016
    Posts:
    3
    Hi can anyone tell me how to disable a TextMeshProUGUI field without disabling the gameObject just like Text would.

    For example text.enabled = false; works
    textMeshProUGUI.enabled = false; doesn't work

    #UPDATE
    Issue resolved. There was a bug in my code
     
    Last edited: Mar 18, 2019