docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023