docs.unity.cn
    Show / Hide Table of Contents

    Class BundleBuildParameters

    Stores the set of parameters passed into Scriptable Build Pipeline when building bundles.

    Inheritance
    Object
    BuildParameters
    BundleBuildParameters
    Inherited Members
    BuildParameters.Target
    BuildParameters.Group
    BuildParameters.ContentBuildFlags
    BuildParameters.ScriptInfo
    BuildParameters.ScriptOptions
    BuildParameters.BundleCompression
    BuildParameters.OutputFolder
    BuildParameters.TempOutputFolder
    BuildParameters.ScriptOutputFolder
    BuildParameters.UseCache
    BuildParameters.CacheServerHost
    BuildParameters.CacheServerPort
    BuildParameters.WriteLinkXML
    BuildParameters.GetContentBuildSettings()
    BuildParameters.GetScriptCompilationSettings()
    BuildParameters.GetOutputFilePathForIdentifier(String)
    BuildParameters.GetCompressionForIdentifier(String)
    Namespace: UnityEditor.Build.Pipeline
    Syntax
    [Serializable]
    public class BundleBuildParameters : BuildParameters, IBundleBuildParameters, IBuildParameters, IContextObject

    Constructors

    BundleBuildParameters(BuildTarget, BuildTargetGroup, String)

    Default constructor, requires the target, group and output parameters at minimum for a successful build.

    Declaration
    public BundleBuildParameters(BuildTarget target, BuildTargetGroup group, string outputFolder)
    Parameters
    Type Name Description
    BuildTarget target

    The target for building content.

    BuildTargetGroup group

    The group for building content.

    String outputFolder

    The final output location for built content.

    Properties

    AppendHash

    Append the hash to the assetBundle file name.

    Declaration
    public bool AppendHash { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IBundleBuildParameters.AppendHash

    ContiguousBundles

    Packs assets in bundles contiguously based on the ordering of the source asset which results in improved asset loading times.

    Declaration
    public bool ContiguousBundles { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IBundleBuildParameters.ContiguousBundles

    DisableVisibleSubAssetRepresentations

    Assume sub Assets have no visible asset representations (are not visible in the Project view) which results in improved build times. Sub Assets in the built bundles cannot be accessed by AssetBundle.LoadAsset<T> or AssetBundle.LoadAllAssets<T>.

    Declaration
    public bool DisableVisibleSubAssetRepresentations { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IBundleBuildParameters.DisableVisibleSubAssetRepresentations
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, June 23, 2022
    Terms of use