docs.unity.cn
    Show / Hide Table of Contents

    Class KeyDataStore

    Contains serialized data in a generic serializable container.

    Inheritance
    Object
    KeyDataStore
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Settings
    Syntax
    [Serializable]
    public class KeyDataStore : ISerializationCallbackReceiver

    Properties

    Name Description
    Keys

    The collection of keys stored.

    OnSetData

    Delegate that is invoked when data is modified.

    Methods

    Name Description
    GetData<T>(String, T, Boolean)

    Get data via a specified key.

    OnAfterDeserialize()

    Implementation of ISerializationCallbackReceiver interface, used to convert data from its serializable form.

    OnBeforeSerialize()

    Implementation of ISerializationCallbackReceiver interface, used to convert data to a serializable form.

    SetData(String, Object)

    Set the value of a specified key.

    SetDataFromString(String, String)

    Set data for a specified key from a string.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 26, 2023