Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Restoring inherited value in style.visibility

$
0
0
Hi,

I realized that once I programmatically change the value of style.visibility of a given VisualElement, I can not longer restore it to its inherited value. After setting the VE visible, even if I set its parent hidden, the child remains on screen.

I ended up creating a css style .hidden which I add/remove instead of setting style.visibility directly. Is this the right approach? It seems that in actual CSS there is also the option Visibility.Inherited. Do you plan on adding it at any...

Restoring inherited value in style.visibility

Viewing all articles
Browse latest Browse all 1466670

Trending Articles