Class AddressablesBuildDataBuilderContext | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AddressablesBuildDataBuilderContext

    Data builder context object for Addressables.

    Inheritance
    System.Object
    AddressablesBuildDataBuilderContext
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets
    Syntax
    public class AddressablesBuildDataBuilderContext : IDataBuilderContext

    Constructors

    AddressablesBuildDataBuilderContext()

    Construct a new AddressablesBuildDataBuilderContext object.

    Declaration
    public AddressablesBuildDataBuilderContext()

    AddressablesBuildDataBuilderContext(AddressableAssetSettings)

    Creates a default context object with values taken from the AddressableAssetSettings parameter.

    Declaration
    public AddressablesBuildDataBuilderContext(AddressableAssetSettings settings)
    Parameters
    Type Name Description
    AddressableAssetSettings settings

    The settings object to pull values from.

    AddressablesBuildDataBuilderContext(AddressableAssetSettings, BuildTargetGroup, BuildTarget, Boolean, Boolean, String)

    Creates a default context object with values taken from the AddressableAssetSettings parameter.

    Declaration
    public AddressablesBuildDataBuilderContext(AddressableAssetSettings settings, BuildTargetGroup buildTargetGroup, BuildTarget buildTarget, bool developerMode, bool sendProfilerEvents, string playerBuildVersion)
    Parameters
    Type Name Description
    AddressableAssetSettings settings

    The settings object to pull values from.

    BuildTargetGroup buildTargetGroup

    The BuildTargetGroup to set.

    BuildTarget buildTarget

    The BuildTarget to set.

    System.Boolean developerMode

    Is develepor mode.

    System.Boolean sendProfilerEvents

    Send profiler events.

    System.String playerBuildVersion

    The player build version.

    AddressablesBuildDataBuilderContext(IDataBuilderContext)

    Construct a new AddressablesBuildDataBuilderContext object, copying values from the one passed in.

    Declaration
    public AddressablesBuildDataBuilderContext(IDataBuilderContext toCopy)
    Parameters
    Type Name Description
    IDataBuilderContext toCopy

    The context to copy values from.

    Properties

    Keys

    Collection of context keys.

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

    Methods

    GetValue(String)

    Get a context value.

    Declaration
    public 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.

    Implements
    IDataBuilderContext.GetValue(String)

    GetValue<T>(String)

    Get a context value.

    Declaration
    public 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.

    Implements
    IDataBuilderContext.GetValue<T>(String)

    SetValue(String, Object)

    Sets a context value.

    Declaration
    public 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.

    Implements
    IDataBuilderContext.SetValue(String, Object)
    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