docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class KeyDataStore

    Contains serialized data in a generic serializable container.

    Inheritance
    object
    KeyDataStore
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.AddressableAssets.Settings
    Assembly: Unity.Addressables.Editor.dll
    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, bool)

    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)