Class ContentCatalogData
Container for ContentCatalogEntries.
Namespace: UnityEngine.AddressableAssets.ResourceLocators
Syntax
[Serializable]
public class ContentCatalogData
Constructors
ContentCatalogData()
Create a new ContentCatalogData object without any data.
Declaration
public ContentCatalogData()
Properties
InstanceProviderData
Data for the Addressables.ResourceManager.InstanceProvider initialization;
Declaration
public ObjectInitializationData InstanceProviderData { get; set; }
Property Value
Type | Description |
---|---|
ObjectInitializationData |
ProviderId
Declaration
public string ProviderId { get; }
Property Value
Type | Description |
---|---|
String |
ResourceProviderData
The list of resource provider data. Each entry will add an IResourceProvider to the Addressables.ResourceManager.ResourceProviders list.
Declaration
public List<ObjectInitializationData> ResourceProviderData { get; }
Property Value
Type | Description |
---|---|
List<ObjectInitializationData> |
SceneProviderData
Data for the Addressables.ResourceManager.InstanceProvider initialization;
Declaration
public ObjectInitializationData SceneProviderData { get; set; }
Property Value
Type | Description |
---|---|
ObjectInitializationData |
Methods
CreateLocator(String)
Create IResourceLocator object
Declaration
public ResourceLocationMap CreateLocator(string providerSuffix = null)
Parameters
Type | Name | Description |
---|---|---|
String | providerSuffix | If specified, this value will be appeneded to all provider ids. This is used when loading additional catalogs that need to have unique providers. |
Returns
Type | Description |
---|---|
ResourceLocationMap | ResourceLocationMap, which implements the IResourceLocator interface. |