visible
Indicates whether or not this element should be rendered.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[CreateProperty]public bool visible { get; set; }
Remarks
The value of this property reflects the value of IResolvedStyle.visibility for this element. The value is true for Visibility.Visible and false for Visibility.Hidden. Writing to this property writes to IStyle.visibility.
Additional Resources: VisualElement.resolvedStyle, VisualElement.style