docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IAssetReference

    An interface containing the information about the reference between two assets.

    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public interface IAssetReference

    Properties

    IsValid

    Whether the reference is valid.

    Declaration
    bool IsValid { get; }
    Property Value
    Type Description
    bool

    ProjectDescriptor

    The project descriptor.

    Declaration
    ProjectDescriptor ProjectDescriptor { get; }
    Property Value
    Type Description
    ProjectDescriptor

    ReferenceId

    The id of the reference.

    Declaration
    string ReferenceId { get; }
    Property Value
    Type Description
    string

    SourceAssetId

    The id of the source asset.

    Declaration
    AssetId SourceAssetId { get; }
    Property Value
    Type Description
    AssetId

    SourceAssetVersion

    The version of the source asset.

    Declaration
    AssetVersion SourceAssetVersion { get; }
    Property Value
    Type Description
    AssetVersion

    TargetAssetId

    The id of the asset that is being targeted.

    Declaration
    AssetId TargetAssetId { get; }
    Property Value
    Type Description
    AssetId

    TargetAssetVersion

    [Optional] The version of the asset that is being targeted.

    Declaration
    AssetVersion? TargetAssetVersion { get; }
    Property Value
    Type Description
    AssetVersion?
    Remarks

    A reference target must point to a version; the version can be explicit as defined by TargetAssetVersion or by label as defined by TargetLabel.

    TargetLabel

    [Optional] The label of the version of the asset that is being targeted.

    Declaration
    string TargetLabel { get; }
    Property Value
    Type Description
    string
    Remarks

    A reference target must point to a version; the version can be explicit as defined by TargetAssetVersion or by label as defined by TargetLabel.

    In This Article
    Back to top
    Copyright © 2025 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)