Class BuildScriptPackedMode | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildScriptPackedMode

    Build scripts used for player builds and running with bundles in the editor.

    Inheritance
    Object
    BuildScriptBase
    BuildScriptPackedMode
    Inherited Members
    BuildScriptBase.instanceProviderType
    BuildScriptBase.sceneProviderType
    BuildScriptBase.BuildData<TResult>(AddressablesDataBuilderInput)
    BuildScriptBase.ProcessAllGroups(AddressableAssetsBuildContext)
    BuildScriptBase.CreateLocationsForPlayerData(PlayerDataGroupSchema, AddressableAssetGroup, List<ContentCatalogDataEntry>, HashSet<Type>)
    BuildScriptBase.DeleteFile(String)
    BuildScriptBase.WriteFile(String, String, FileRegistry)
    Namespace: UnityEditor.AddressableAssets.Build.DataBuilders
    Syntax
    public class BuildScriptPackedMode : BuildScriptBase, IDataBuilder

    Properties

    Name

    The descriptive name used in the UI.

    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    String
    Overrides
    BuildScriptBase.Name

    Methods

    BuildDataImplementation<TResult>(AddressablesDataBuilderInput)

    The implementation of BuildData<TResult>(AddressablesDataBuilderInput). That is the public entry point, this is the home for child class overrides.

    Declaration
    protected override TResult BuildDataImplementation<TResult>(AddressablesDataBuilderInput builderInput)
        where TResult : IDataBuilderResult
    Parameters
    Type Name Description
    AddressablesDataBuilderInput builderInput

    The builderInput object used in the build

    Returns
    Type Description
    TResult

    The build data result

    Type Parameters
    Name Description
    TResult

    The type of data to build

    Overrides
    BuildScriptBase.BuildDataImplementation<TResult>(AddressablesDataBuilderInput)

    CanBuildData<T>()

    Used to determine if this builder is capable of building a specific type of data.

    Declaration
    public override bool CanBuildData<T>()
        where T : IDataBuilderResult
    Returns
    Type Description
    Boolean

    True if this builder can build this data.

    Type Parameters
    Name Description
    T

    The type of data needed to be built.

    Overrides
    BuildScriptBase.CanBuildData<T>()

    ClearCachedData()

    Used to clean up any cached data created by this builder.

    Declaration
    public override void ClearCachedData()
    Overrides
    BuildScriptBase.ClearCachedData()

    ConstructAssetBundleName(AddressableAssetGroup, BundledAssetGroupSchema, BundleDetails, String)

    Declaration
    protected virtual string ConstructAssetBundleName(AddressableAssetGroup assetGroup, BundledAssetGroupSchema schema, BundleDetails info, string assetBundleName)
    Parameters
    Type Name Description
    AddressableAssetGroup assetGroup
    BundledAssetGroupSchema schema
    BundleDetails info
    String assetBundleName
    Returns
    Type Description
    String

    DoBuild<TResult>(AddressablesDataBuilderInput, AddressableAssetsBuildContext)

    The method that does the actual building after all the groups have been processed.

    Declaration
    protected virtual TResult DoBuild<TResult>(AddressablesDataBuilderInput builderInput, AddressableAssetsBuildContext aaContext)
        where TResult : IDataBuilderResult
    Parameters
    Type Name Description
    AddressablesDataBuilderInput builderInput

    The generic builderInput of the

    AddressableAssetsBuildContext aaContext
    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult

    IsDataBuilt()

    Checks to see if the data is built for the given builder.

    Declaration
    public override bool IsDataBuilt()
    Returns
    Type Description
    Boolean
    Overrides
    BuildScriptBase.IsDataBuilt()

    ProcessBundledAssetSchema(BundledAssetGroupSchema, AddressableAssetGroup, AddressableAssetsBuildContext)

    The processing of the bundled asset schema. This is where the bundle(s) for a given group are actually setup.

    Declaration
    protected virtual string ProcessBundledAssetSchema(BundledAssetGroupSchema schema, AddressableAssetGroup assetGroup, AddressableAssetsBuildContext aaContext)
    Parameters
    Type Name Description
    BundledAssetGroupSchema schema

    The BundledAssetGroupSchema to process

    AddressableAssetGroup assetGroup

    The group this schema was pulled from

    AddressableAssetsBuildContext aaContext

    The general Addressables build builderInput

    Returns
    Type Description
    String

    The error string, if any.

    ProcessGroup(AddressableAssetGroup, AddressableAssetsBuildContext)

    Build processing of an individual group.

    Declaration
    protected override string ProcessGroup(AddressableAssetGroup assetGroup, AddressableAssetsBuildContext aaContext)
    Parameters
    Type Name Description
    AddressableAssetGroup assetGroup

    The group to process

    AddressableAssetsBuildContext aaContext

    The Addressables builderInput object to base the group processing on

    Returns
    Type Description
    String

    An error string if there were any problems processing the groups

    Overrides
    BuildScriptBase.ProcessGroup(AddressableAssetGroup, AddressableAssetsBuildContext)

    ProcessGroupSchema(AddressableAssetGroupSchema, AddressableAssetGroup, AddressableAssetsBuildContext)

    Called per group per schema to evaluate that schema. This can be an easy entry point for implementing the build aspects surrounding a custom schema. Note, you should not rely on schemas getting called in a specific order.

    Declaration
    protected virtual string ProcessGroupSchema(AddressableAssetGroupSchema schema, AddressableAssetGroup assetGroup, AddressableAssetsBuildContext aaContext)
    Parameters
    Type Name Description
    AddressableAssetGroupSchema schema

    The schema to process

    AddressableAssetGroup assetGroup

    The group this schema was pulled from

    AddressableAssetsBuildContext aaContext

    The general Addressables build builderInput

    Returns
    Type Description
    String
    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