{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetCacheEntry | Scriptable Build Pipeline | 2.0.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCacheEntry

    GetCacheEntry(GUID, int)

    Gets a CacheEntry for an asset identified by its GUID.

    Declaration
    CacheEntry GetCacheEntry(GUID asset, int version = 1)
    Parameters
    Type Name Description
    GUID asset

    GUID identifier for an asset from the Asset Database

    int version

    Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional)

    Returns
    Type Description
    CacheEntry

    CacheEntry representing current asset.

    GetCacheEntry(string, int)

    Gets a CacheEntry for a file identified by its relative path.

    Declaration
    CacheEntry GetCacheEntry(string path, int version = 1)
    Parameters
    Type Name Description
    string path

    Relative path of a file on disk

    int version

    Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional)

    Returns
    Type Description
    CacheEntry

    CacheEntry representing a file on disk.

    GetCacheEntry(ObjectIdentifier, int)

    Gets a CacheEntry for an object identified by an Object Identifier.

    Declaration
    CacheEntry GetCacheEntry(ObjectIdentifier objectID, int version = 1)
    Parameters
    Type Name Description
    ObjectIdentifier objectID

    Object identifier for an object

    int version

    Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional)

    Returns
    Type Description
    CacheEntry

    CacheEntry representing an object identifier.

    GetCacheEntry(Type, int)

    Gets a CacheEntry for a scripting type by a System.Type.

    Declaration
    CacheEntry GetCacheEntry(Type type, int version = 1)
    Parameters
    Type Name Description
    Type type

    System.Type for a scripting type

    int version

    Version number of the system asking for an entry to distinguish it from previous incompatible entries. (Optional)

    Returns
    Type Description
    CacheEntry

    CacheEntry representing an object identifier.

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