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
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
HasDependencies
This value is always false.
Declaration
public bool HasDependencies { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Implements
InternalId
Returns the same value as Key.
Declaration
public string InternalId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Implements
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 |