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. |
PrimaryKey
Primary address for this location.
Declaration
string PrimaryKey { get; }
Property Value
Type | Description |
---|---|
System.String |
ProviderId
Matches the provider used to provide/load this location
Declaration
string ProviderId { get; }
Property Value
Type | Description |
---|---|
System.String | The provider id. |
ResourceType
The type of the resource for th location.
Declaration
Type ResourceType { get; }
Property Value
Type | Description |
---|---|
System.Type |
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. |