docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContentDirectoryAssetData

    Data stored in ContentCatalogDataEntry.Data for asset entries in Content Directories.

    Inheritance
    object
    ContentDirectoryAssetData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Default value used for AssetId and SceneId.

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)