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. |