Class Resources
Assembly: UnityEngine.dll
Syntax
public sealed class Resources
Methods
FindObjectsOfTypeAll(Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.ArrayOfTypeReferencedByFirstArgument)]
public static Object[] FindObjectsOfTypeAll(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
FindObjectsOfTypeAll<T>()
Declaration
public static T[] FindObjectsOfTypeAll<T>()
where T : Object
Returns
Type Parameters
GetBuiltinResource(Type, String)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public static Object GetBuiltinResource(Type type, string path)
Parameters
Returns
|
Improve this Doc
View Source
GetBuiltinResource<T>(String)
Declaration
public static T GetBuiltinResource<T>(string path)
where T : Object
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Load(String)
Declaration
public static Object Load(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Load(String, Type)
Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
public static Object Load(string path, Type systemTypeInstance)
Parameters
Type |
Name |
Description |
String |
path |
|
Type |
systemTypeInstance |
|
Returns
|
Improve this Doc
View Source
Load<T>(String)
Declaration
public static T Load<T>(string path)
where T : Object
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAll(String)
Declaration
public static Object[] LoadAll(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
LoadAll(String, Type)
Declaration
public static Object[] LoadAll(string path, Type systemTypeInstance)
Parameters
Type |
Name |
Description |
String |
path |
|
Type |
systemTypeInstance |
|
Returns
|
Improve this Doc
View Source
LoadAll<T>(String)
Declaration
public static T[] LoadAll<T>(string path)
where T : Object
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAsync(String)
Declaration
public static ResourceRequest LoadAsync(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
|
Improve this Doc
View Source
LoadAsync(String, Type)
Declaration
public static ResourceRequest LoadAsync(string path, Type type)
Parameters
Returns
|
Improve this Doc
View Source
LoadAsync<T>(String)
Declaration
public static ResourceRequest LoadAsync<T>(string path)
where T : Object
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
UnloadAsset(Object)
Declaration
public static void UnloadAsset(Object assetToUnload)
Parameters
Type |
Name |
Description |
Object |
assetToUnload |
|
UnloadUnusedAssets()
Declaration
public static AsyncOperation UnloadUnusedAssets()
Returns
Extension Methods