Version: 2017.3
Experimental: this API is experimental and might be changed or removed in the future.

VisualElement.OverwriteFromPersistedData

Cambiar al Manual
public void OverwriteFromPersistedData (object obj, string key);

Parámetros

key The key for the current VisualElement to be used with the persistence store on the EditorWindow.
obj Object to overwrite.

Descripción

Overwrite object from the persistent data store.

This will overwrite all public and [SerializeField]-marked fields on the given object (meant to usually be the current VisualElement). It's better to use this method if the fields you want to persist on your VisualElement are mostly basic types and you don't want to create a class for them.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961