Struct LegacyResourcesLocation | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct LegacyResourcesLocation

    Simple class for loading via the Resources.Load API

    Namespace: UnityEngine.ResourceManagement.ResourceLocations
    Syntax
    public struct LegacyResourcesLocation : IResourceLocation

    Constructors

    LegacyResourcesLocation(String)

    Construct a new LegacyResourcesLocation with a specified key.

    Declaration
    public LegacyResourcesLocation(string key)
    Parameters
    Type Name Description
    System.String key

    The key of the location. This should be set to the path relative to the resources folder it is contained within.

    Properties

    Data

    This value is always null.

    Declaration
    public object Data { get; }
    Property Value
    Type Description
    System.Object
    Implements
    IResourceLocation.Data

    Dependencies

    This value is always null since the Resources API does not deal with dependencies.

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

    HasDependencies

    This value is always false.

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

    InternalId

    Returns the same value as Key.

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

    Key

    Returns the path of the asset.

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

    ProviderId

    returns typeof(LegacyResourcesProvider).FullName.

    Declaration
    public string ProviderId { get; }
    Property Value
    Type Description
    System.String
    Implements
    IResourceLocation.ProviderId
    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