viewDataKey
Used for view data persistence, such as tree expanded states, scroll position, or zoom level.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
[UxmlAttribute]public string viewDataKey { get; set; }
Remarks
This key is used to save and load the view data from the view data store. If you don't set this key, the persistence is disabled for the associated VisualElement. For more information, refer to View data persistence in the Unity Manual.