Class ResourceManagerConfig
Resource Manager Config utility class.
Inherited Members
Namespace: UnityEngine.ResourceManagement.Util
Syntax
public static class ResourceManagerConfig
Methods
CreateArrayResult(Type, Object[])
Used to create an operation result that has multiple items.
Declaration
public static Array CreateArrayResult(Type type, Object[] allAssets)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type of the result. |
Object[] | allAssets | The result objects. |
Returns
Type | Description |
---|---|
Array | Returns Array object with result items. |
CreateArrayResult<TObject>(Object[])
Used to create an operation result that has multiple items.
Declaration
public static TObject CreateArrayResult<TObject>(Object[] allAssets)
where TObject : class
Parameters
Type | Name | Description |
---|---|---|
Object[] | allAssets | The result objects. |
Returns
Type | Description |
---|---|
TObject | Returns result Array as TObject. |
Type Parameters
Name | Description |
---|---|
TObject | The type of the result. |
CreateListResult(Type, Object[])
Used to create an operation result that has multiple items.
Declaration
public static IList CreateListResult(Type type, Object[] allAssets)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type of the result objects. |
Object[] | allAssets | The result objects. |
Returns
Type | Description |
---|---|
IList | An IList of the resulting objects. |
CreateListResult<TObject>(Object[])
Used to create an operation result that has multiple items.
Declaration
public static TObject CreateListResult<TObject>(Object[] allAssets)
Parameters
Type | Name | Description |
---|---|---|
Object[] | allAssets | The result objects. |
Returns
Type | Description |
---|---|
TObject | An IList of the resulting objects converted to TObject. |
Type Parameters
Name | Description |
---|---|
TObject | The type of the result. |
IsInstance<T1, T2>()
Check if one type is an instance of another type.
Declaration
public static bool IsInstance<T1, T2>()
Returns
Type | Description |
---|---|
Boolean | Returns true if T2 is a base type of T1. |
Type Parameters
Name | Description |
---|---|
T1 | Expected base type. |
T2 | Expected child type. |
IsPathRemote(String)
Check to see if a path is remote or not.
Declaration
public static bool IsPathRemote(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to check. |
Returns
Type | Description |
---|---|
Boolean | Returns true if path is remote. |
ShouldPathUseWebRequest(String)
Check if path should use WebRequest. A path should use WebRequest for remote paths and platforms that require WebRequest to load locally.
Declaration
public static bool ShouldPathUseWebRequest(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to check. |
Returns
Type | Description |
---|---|
Boolean | Returns true if path should use WebRequest. |