ScriptReference/UIElements.VisualElement-visible #703
Replies: 1 comment
-
Visibility /// <summary>
/// Styles an element to stop it from rendering.
/// </summary>
/// <param name="element">The targeted element.</param>
/// <param name="isHidden"><paramref name="element"/> is hidden if true.</param>
/// <remarks>Unlike <see cref="VisualElement.visible"/>, because <see cref="Visibility.Visible"/> <i>forces</i> visibility (even as a child of a hidden element)
/// this method sets the visibility to <see cref="StyleKeyword.Null"/>.</remarks>
public static void SetHidden(this VisualElement element, bool isHidden) => element.style.visibility = isHidden ? Visibility.Hidden : StyleKeyword.Null; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/UIElements.VisualElement-visible
https://docs.unity3d.com/ScriptReference/UIElements.VisualElement-visible.html
Beta Was this translation helpful? Give feedback.
All reactions