Search Unity

How hide and Unhide with UIElements?

Discussion in 'UI Toolkit' started by lorddanger, Dec 17, 2019.

  1. lorddanger

    lorddanger

    Joined:
    Aug 8, 2015
    Posts:
    103
    Hello,
    In my case, I have windows (visual elements)
    1. Character stat
    2. Inventory weight counter

    I want that when the weight of the inventory is 9 out 10.
    Inventory counter shows and if it's below 9 its hides.

    So using UI Elements how can I hide "Inventory weight counter(visual element)" leaving "Character stat" enable...
     
  2. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    499
    lghfoo, s_marcell, Propagant and 12 others like this.