Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Visibility

Style value that specifies whether or not a VisualElement is visible.
Read time 1 minuteLast updated 6 days ago

Definition

public enum Visibility

Fields

Value

Description

HiddenThe VisualElement is hidden. Hidden VisualElements will take up space in their parent layout if their positionType is set to PositionType.Relative. Use the DisplayStyle style property to both hide and remove a VisualElement from the parent VisualElement layout. Note, this is the enum value used when setting styles via VisualElement.style.visibility. In C#, you can just use VisualElement.visible = false.
VisibleThe VisualElement is visible. Default Value.