Interface IResourceLocation | Package Manager UI website
docs.unity.cn
    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
    System.Object

    The object.

    Dependencies

    Gets the dependencies to other IResourceLocations

    Declaration
    IList<IResourceLocation> Dependencies { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<IResourceLocation>

    The dependencies.

    DependencyHashCode

    The precomputed hash code of the dependencies.

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

    HasDependencies

    Gets the dependencies to other IResourceLocations

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

    The dependencies.

    InternalId

    Internal name used by the provider to load this location

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

    The identifier.

    ProviderId

    Matches the provider used to provide/load this location

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

    The provider id.

    Methods

    Hash(Type)

    The hash of this location combined with the specified type.

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

    The type of the result.

    Returns
    Type Description
    System.Int32

    The combined hash of the location and the type.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX