Class BundledAssetGroupSchema
Schema used for bundled asset groups.
Namespace: UnityEditor.AddressableAssets
Syntax
public class BundledAssetGroupSchema : AddressableAssetGroupSchema, IHostingServiceConfigurationProvider, ISerializationCallbackReceiver
Properties
AssetBundleProviderType
The provider type to use for loading asset bundles.
Declaration
public SerializedType AssetBundleProviderType { get; }
Property Value
Type | Description |
---|---|
SerializedType |
BuildPath
The path to copy asset bundles to.
Declaration
public ProfileValueReference BuildPath { get; }
Property Value
Type | Description |
---|---|
ProfileValueReference |
BundleMode
Controls how bundles are packed. If set to PackTogether, a single asset bundle will be created for the entire group, with the exception of scenes, which are packed separately. If set to PackSeparately, an asset bundle will be created for each top level entry in the group.
Declaration
public BundledAssetGroupSchema.BundlePackingMode BundleMode { get; set; }
Property Value
Type | Description |
---|---|
BundledAssetGroupSchema.BundlePackingMode |
ChunkedTransfer
Indicates whether the UnityWebRequest system should employ the HTTP/1.1 chunked-transfer encoding method.
Declaration
public bool ChunkedTransfer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
HostingServicesContentRoot
Returns the Hosting Service content root path for the given AddressableAssetGroup
Declaration
public string HostingServicesContentRoot { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
LoadPath
The path to load bundles from.
Declaration
public ProfileValueReference LoadPath { get; }
Property Value
Type | Description |
---|---|
ProfileValueReference |
RedirectLimit
Indicates the number of redirects which this UnityWebRequest will follow before halting with a “Redirect Limit Exceeded” system error.
Declaration
public int RedirectLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RetryCount
Indicates the number of times the request will be retried.
Declaration
public int RetryCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Timeout
Sets UnityWebRequest to attempt to abort after the number of seconds in timeout have passed.
Declaration
public int Timeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UseAssetBundleCache
If true, the CRC and Hash values of the asset bundle are used to determine if a bundle can be loaded from the local cache instead of downloaded.
Declaration
public bool UseAssetBundleCache { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
OnAfterDeserialize()
Impementation of ISerializationCallbackReceiver, used to set callbacks for ProfileValueReference changes.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Impementation of ISerializationCallbackReceiver, does nothing.
Declaration
public void OnBeforeSerialize()
OnSetGroup(AddressableAssetGroup)
Set default values taken from the assigned group.
Declaration
protected override void OnSetGroup(AddressableAssetGroup group)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetGroup | group | The group this schema has been added to. |