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

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:
    443
    lghfoo, s_marcell, Propagant and 12 others like this.