Class AddressableAssetsBundleBuildParameters
Custom bundle parameter container that provides custom compression settings per bundle.
Inherited Members
Namespace: UnityEditor.AddressableAssets.Build.DataBuilders
Syntax
public class AddressableAssetsBundleBuildParameters : BundleBuildParameters, IBundleBuildParameters, IBuildParameters, IContextObject
Constructors
AddressableAssetsBundleBuildParameters(AddressableAssetSettings, Dictionary<String, String>, BuildTarget, BuildTargetGroup, String)
Create a AddressableAssetsBundleBuildParameters with data needed to determine the correct compression per bundle.
Declaration
public AddressableAssetsBundleBuildParameters(AddressableAssetSettings aaSettings, Dictionary<string, string> bundleToAssetGroup, BuildTarget target, BuildTargetGroup group, string outputFolder)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetSettings | aaSettings | The AddressableAssetSettings object to use for retrieving groups. |
Dictionary<String, String> | bundleToAssetGroup | Mapping of bundle identifier to guid of asset groups. |
BuildTarget | target | The build target. This is used by the BundleBuildParameters base class. |
BuildTargetGroup | group | The build target group. This is used by the BundleBuildParameters base class. |
String | outputFolder | The path for the output folder. This is used by the BundleBuildParameters base class. |
Methods
GetCompressionForIdentifier(String)
Get the compressions settings for the specified asset bundle.
Declaration
public override BuildCompression GetCompressionForIdentifier(string identifier)
Parameters
Type | Name | Description |
---|---|---|
String | identifier | The identifier of the asset bundle. |
Returns
Type | Description |
---|---|
BuildCompression | The compression setting for the asset group. If the group is not found, the default compression is used. |