Class CompanionResource | MARS Companion Core | 0.1.9-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class CompanionResource

    Inheritance
    Object
    CompanionResource
    Namespace: Unity.MARS.Companion.Core
    Syntax
    [Serializable]
    public class CompanionResource : IListViewItemData<string>

    Constructors

    CompanionResource()

    Declaration
    public CompanionResource()

    CompanionResource(String, String, ResourceType, Int64, Boolean)

    Declaration
    public CompanionResource(string key, string name, ResourceType type, long fileSize, bool hasBundle)
    Parameters
    Type Name Description
    String key
    String name
    ResourceType type
    Int64 fileSize
    Boolean hasBundle

    Properties

    cloudVersion

    Declaration
    public CompanionResource cloudVersion { get; set; }
    Property Value
    Type Description
    CompanionResource

    fileSize

    Declaration
    public long fileSize { get; }
    Property Value
    Type Description
    Int64

    hasAssetBundle

    Declaration
    public bool hasAssetBundle { get; }
    Property Value
    Type Description
    Boolean

    index

    Declaration
    public string index { get; }
    Property Value
    Type Description
    String
    Implements
    IListViewItemData<TIndex>.index

    isCloudResource

    Declaration
    public bool isCloudResource { get; set; }
    Property Value
    Type Description
    Boolean

    key

    Declaration
    public string key { get; }
    Property Value
    Type Description
    String

    name

    Declaration
    public string name { get; }
    Property Value
    Type Description
    String

    selected

    Declaration
    public bool selected { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IListViewItemData<TIndex>.selected

    template

    Declaration
    public string template { get; }
    Property Value
    Type Description
    String
    Implements
    IListViewItemData<TIndex>.template

    timestamp

    Declaration
    public long timestamp { get; }
    Property Value
    Type Description
    Int64

    type

    Declaration
    public ResourceType type { get; }
    Property Value
    Type Description
    ResourceType

    Methods

    GetMetadataString(Int64)

    Declaration
    public string GetMetadataString(long extraSize = 0L)
    Parameters
    Type Name Description
    Int64 extraSize
    Returns
    Type Description
    String

    GetSyncStatus()

    Declaration
    public SynchronizationStatus GetSyncStatus()
    Returns
    Type Description
    SynchronizationStatus

    GetThumbnail(IUsesCloudDataStorage, CompanionProject, Action<Texture2D>)

    Declaration
    public void GetThumbnail(IUsesCloudDataStorage storageUser, CompanionProject project, Action<Texture2D> callback = null)
    Parameters
    Type Name Description
    IUsesCloudDataStorage storageUser
    CompanionProject project
    Action<Texture2D> callback

    Update(String, Int64, Boolean)

    Declaration
    public void Update(string newName, long fileSize, bool hasBundle)
    Parameters
    Type Name Description
    String newName
    Int64 fileSize
    Boolean hasBundle
    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