Interface IDataBuilderContext | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IDataBuilderContext

    Used to pass context data into IDataBuilders.

    Namespace: UnityEditor.AddressableAssets
    Syntax
    public interface IDataBuilderContext

    Properties

    Keys

    The available keys.

    Declaration
    ICollection<string> Keys { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<System.String>

    Methods

    GetValue(String)

    Get a context value.

    Declaration
    object GetValue(string key)
    Parameters
    Type Name Description
    System.String key

    The key for the value.

    Returns
    Type Description
    System.Object

    The value as an object.

    GetValue<T>(String)

    Get a context value.

    Declaration
    T GetValue<T>(string key)
    Parameters
    Type Name Description
    System.String key

    The key for the value.

    Returns
    Type Description
    T

    The value cast to the type T.

    Type Parameters
    Name Description
    T

    The type of the context value to retrieve.

    SetValue(String, Object)

    Sets a context value.

    Declaration
    void SetValue(string key, object value)
    Parameters
    Type Name Description
    System.String key

    The key for the value.

    System.Object value

    The value to set.

    Back to top
    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