docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetArtifact

    GetArtifact(ArtifactCreationDelegate, bool)

    Will download the artifact, or load it from the cache on your current machine, if it exists.

    Declaration
    public virtual void GetArtifact(Artifact<T>.ArtifactCreationDelegate onReceived, bool useCache)
    Parameters
    Type Name Description
    Artifact<T>.ArtifactCreationDelegate onReceived

    Callback for when the artifact was successfully loaded and created. T will be default on error, and the error message will be in the 2nd parameter detailing the reason

    bool useCache

    When true will attempt to load the cached representation of this artifact from the local machine's GeneratedArtifactCache, and if not found will download it from the client. false will always reach out to the client and update the cache

    In This Article
    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