docs.unity3d.com
    Show / Hide Table of Contents

    Interface IResourceLocation

    Contains enough information to load an asset (what/where/how/dependencies)

    Namespace: UnityEngine.ResourceManagement.ResourceLocations
    Syntax
    public interface IResourceLocation

    Properties

    Data

    Gets any data object associated with this locations

    Declaration
    object Data { get; }
    Property Value
    Type Description
    Object

    The object.

    Dependencies

    Gets the dependencies to other IResourceLocations

    Declaration
    IList<IResourceLocation> Dependencies { get; }
    Property Value
    Type Description
    IList<IResourceLocation>

    The dependencies.

    DependencyHashCode

    The precomputed hash code of the dependencies.

    Declaration
    int DependencyHashCode { get; }
    Property Value
    Type Description
    Int32

    HasDependencies

    Gets the dependencies to other IResourceLocations

    Declaration
    bool HasDependencies { get; }
    Property Value
    Type Description
    Boolean

    The dependencies.

    InternalId

    Internal name used by the provider to load this location

    Declaration
    string InternalId { get; }
    Property Value
    Type Description
    String

    The identifier.

    PrimaryKey

    Primary address for this location.

    Declaration
    string PrimaryKey { get; }
    Property Value
    Type Description
    String

    ProviderId

    Matches the provider used to provide/load this location

    Declaration
    string ProviderId { get; }
    Property Value
    Type Description
    String

    The provider id.

    ResourceType

    The type of the resource for th location.

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

    Methods

    Hash(Type)

    The hash of this location combined with the specified type.

    Declaration
    int Hash(Type resultType)
    Parameters
    Type Name Description
    Type resultType

    The type of the result.

    Returns
    Type Description
    Int32

    The combined hash of the location and the type.

    Back to top
    Terms of use
    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