docs.unity3d.com
    Show / Hide Table of Contents

    Class Asset

    This is a base class containing the information pertaining to an asset.

    Inheritance
    Object
    Asset
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Assets
    Syntax
    public class Asset : IAsset

    Constructors

    Asset()

    Declaration
    public Asset()

    Fields

    m_Attachments

    Declaration
    protected List<AssetFile> m_Attachments
    Field Value
    Type Description
    List<AssetFile>

    m_Collections

    Declaration
    protected List<CollectionPath> m_Collections
    Field Value
    Type Description
    List<CollectionPath>

    m_Files

    Declaration
    protected List<AssetFile> m_Files
    Field Value
    Type Description
    List<AssetFile>

    Properties

    Attachments

    The attachments of the asset.

    Declaration
    public IEnumerable<IAssetAttachment> Attachments { get; }
    Property Value
    Type Description
    IEnumerable<IAssetAttachment>
    Implements
    IAsset.Attachments

    Author

    The author of the asset.

    Declaration
    public AssetAuthor Author { get; set; }
    Property Value
    Type Description
    AssetAuthor
    Implements
    IAsset.Author

    Categories

    The categories of the asset.

    Declaration
    public List<string> Categories { get; set; }
    Property Value
    Type Description
    List<String>
    Implements
    IAsset.Categories

    Collections

    The collections of the asset.

    Declaration
    public IEnumerable<CollectionPath> Collections { get; }
    Property Value
    Type Description
    IEnumerable<CollectionPath>
    Implements
    IAsset.Collections

    Created

    The created date of the asset.

    Declaration
    public DateTime Created { get; set; }
    Property Value
    Type Description
    DateTime
    Implements
    IAsset.Created

    CreatedBy

    The created by of the asset.

    Declaration
    public string CreatedBy { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.CreatedBy

    Description

    The description of the asset.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Description

    ExternalId

    The external ID of the asset.

    Declaration
    public string ExternalId { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.ExternalId

    Files

    The files of the asset.

    Declaration
    public IEnumerable<IAssetFile> Files { get; }
    Property Value
    Type Description
    IEnumerable<IAssetFile>
    Implements
    IAsset.Files

    Id

    The id of the asset.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Id

    Location

    The location of the asset.

    Declaration
    public AssetLocation Location { get; set; }
    Property Value
    Type Description
    AssetLocation
    Implements
    IAsset.Location

    Name

    The name of the asset.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Name

    Origin

    The origin of the asset.

    Declaration
    public string Origin { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Origin

    PreviewFileId

    The preview file ID of the asset.

    Declaration
    public string PreviewFileId { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.PreviewFileId

    Project

    The project of the asset.

    Declaration
    public IProject Project { get; set; }
    Property Value
    Type Description
    IProject
    Implements
    IAsset.Project

    ProjectIds

    The project id's to which the asset is linked.

    Declaration
    public List<string> ProjectIds { get; }
    Property Value
    Type Description
    List<String>
    Implements
    IAsset.ProjectIds

    ShortId

    The short ID of the asset.

    Declaration
    public string ShortId { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.ShortId

    SourceProjectId

    The source project id of the asset.

    Declaration
    public string SourceProjectId { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.SourceProjectId

    Status

    The status of the asset.

    Declaration
    public string Status { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Status

    StatusDetails

    The status details of the asset.

    Declaration
    public string StatusDetails { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.StatusDetails

    StorageId

    The storage id of the asset.

    Declaration
    public string StorageId { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.StorageId

    Tags

    The tags of the asset.

    Declaration
    public List<string> Tags { get; set; }
    Property Value
    Type Description
    List<String>
    Implements
    IAsset.Tags

    Taxonomy

    The taxonomy of the asset.

    Declaration
    public AssetTaxonomy Taxonomy { get; set; }
    Property Value
    Type Description
    AssetTaxonomy
    Implements
    IAsset.Taxonomy

    Type

    The type of the asset.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.Type

    Updated

    The updated date of the asset.

    Declaration
    public DateTime Updated { get; set; }
    Property Value
    Type Description
    DateTime
    Implements
    IAsset.Updated

    UpdatedBy

    The updated by of the asset.

    Declaration
    public string UpdatedBy { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.UpdatedBy

    Version

    The version of the asset.

    Declaration
    public int Version { get; set; }
    Property Value
    Type Description
    Int32
    Implements
    IAsset.Version

    VersionName

    The version name of the asset.

    Declaration
    public string VersionName { get; set; }
    Property Value
    Type Description
    String
    Implements
    IAsset.VersionName

    Methods

    OnCollectionsUpdated(IEnumerable<AssetCollection>)

    Updates the collection list.

    Declaration
    public void OnCollectionsUpdated(IEnumerable<AssetCollection> assetCollections)
    Parameters
    Type Name Description
    IEnumerable<AssetCollection> assetCollections

    An updated list of collections.

    Implements
    IAsset.OnCollectionsUpdated(IEnumerable<AssetCollection>)

    OnFilesUpdated(IEnumerable<AssetFile>, IEnumerable<AssetFile>)

    Updates the files and attachments.

    Declaration
    public void OnFilesUpdated(IEnumerable<AssetFile> assetFiles, IEnumerable<AssetFile> assetAttachments)
    Parameters
    Type Name Description
    IEnumerable<AssetFile> assetFiles

    An updated list of files.

    IEnumerable<AssetFile> assetAttachments

    An updated list of attachments.

    Implements
    IAsset.OnFilesUpdated(IEnumerable<AssetFile>, IEnumerable<AssetFile>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023