Class ContentDirectoryAssetData
Data stored in ContentCatalogDataEntry.Data for asset entries in Content Directories.
Inherited Members
Namespace: UnityEngine.ResourceManagement.ResourceProviders
Assembly: Unity.ResourceManager.dll
Syntax
[Serializable]
public class ContentDirectoryAssetData
Fields
| Name | Description |
|---|---|
| AssetId | Integer ID for regular assets. Maps to LoadableObjectId via AddressableRootAsset.GetLoadableObjectId(). Not applicable for scene entries; check IsAssetIdValid. |
| LoadPath | The (symbolic) load path of the Content Directory this entry belongs to. Resolved at runtime and used by the asset/scene providers to mount the Content Directory via ContentDirectoryMountManager. Stored unresolved so runtime placeholders such as expand per-platform. |
| SceneId | Integer ID for scene entries. Maps to LoadableSceneId via AddressableRootAsset.GetLoadableSceneId(). Not applicable for regular asset entries; check IsSceneIdValid. |
| SubAssetIds | Precomputed list of subasset LoadableObjectId integers for this entry. Used by HandleListRequest to load all subassets in batch. |
| kInvalidId |
Properties
| Name | Description |
|---|---|
| IsAssetIdValid | Whether AssetId refers to an asset in the AddressableRootAsset. False for scene entries, where it is kInvalidId. |
| IsSceneIdValid | Whether SceneId refers to a scene in the AddressableRootAsset. False for regular asset entries, where it is kInvalidId. |