Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


viewDataKey

Used for view data persistence, such as tree expanded states, scroll position, or zoom level.
Read time 1 minuteLast updated 5 days ago

Definition

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.