Class ContentCatalogDataEntry
Contains serializable data for an IResourceLocation
Inheritance
Inherited Members
Namespace: UnityEngine.AddressableAssets
Syntax
public class ContentCatalogDataEntry
Constructors
ContentCatalogDataEntry(String, String, IEnumerable<Object>, IEnumerable<Object>, Object)
Construct a new ContentCatalogEntry.
Declaration
public ContentCatalogDataEntry(string internalId, string provider, IEnumerable<object> keys, IEnumerable<object> dependencies = null, object extraData = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | internalId | The internal id. |
System.String | provider | The provider id. |
System.Collections.Generic.IEnumerable<System.Object> | keys | The collection of keys that can be used to retrieve this entry. |
System.Collections.Generic.IEnumerable<System.Object> | dependencies | Optional collection of keys for dependencies. |
System.Object | extraData | Optional additional data to be passed to the provider. For example, AssetBundleProviders use this for cache and crc data. |
ContentCatalogDataEntry(String, String, String, Type, HashSet<String>, IEnumerable<Object>, Object)
[obsolete] Construct a new ContentCatalogEntry.
Declaration
public ContentCatalogDataEntry(string address, string guid, string internalId, Type provider, HashSet<string> labels = null, IEnumerable<object> dependencies = null, object extraData = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | address | The primary key for this entry. |
System.String | guid | The guid of the asset. |
System.String | internalId | The internal id. |
System.Type | provider | The provider id. |
HashSet<System.String> | labels | Optional set of labels that will be used as keys. |
System.Collections.Generic.IEnumerable<System.Object> | dependencies | Optional collection of keys for dependencies. |
System.Object | extraData | Optional additional data to be passed to the provider. For example, AssetBundleProviders use this for cache and crc data. |
Properties
Data
Serializable data for the provider.
Declaration
public object Data { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Dependencies
Dependency keys.
Declaration
public List<object> Dependencies { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> |
InternalId
Internl id.
Declaration
public string InternalId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Keys
Keys for this location.
Declaration
public List<object> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> |
Provider
IResourceProvider identifier.
Declaration
public string Provider { get; }
Property Value
Type | Description |
---|---|
System.String |