Show / Hide Table of Contents

Class Resources

Inheritance
Object
Resources
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
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
Type Description
Object[]
| Improve this Doc View Source

FindObjectsOfTypeAll<T>()

Declaration
public static T[] FindObjectsOfTypeAll<T>()
    where T : Object
Returns
Type Description
T[]
Type Parameters
Name Description
T

GetBuiltinResource(Type, String)

Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public static Object GetBuiltinResource(Type type, string path)
Parameters
Type Name Description
Type type
String path
Returns
Type Description
Object
| 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 Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

Load(String)

Declaration
public static Object Load(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Object

Load(String, Type)

Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedBySecondArgument)]
public static Object Load(string path, Type systemTypeInstance)
Parameters
Type Name Description
String path
Type systemTypeInstance
Returns
Type Description
Object
| 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 Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAll(String)

Declaration
public static Object[] LoadAll(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Object[]

LoadAll(String, Type)

Declaration
public static Object[] LoadAll(string path, Type systemTypeInstance)
Parameters
Type Name Description
String path
Type systemTypeInstance
Returns
Type Description
Object[]
| 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 Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

LoadAsync(String)

Declaration
public static ResourceRequest LoadAsync(string path)
Parameters
Type Name Description
String path
Returns
Type Description
ResourceRequest
| Improve this Doc View Source

LoadAsync(String, Type)

Declaration
public static ResourceRequest LoadAsync(string path, Type type)
Parameters
Type Name Description
String path
Type type
Returns
Type Description
ResourceRequest
| 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 Description
ResourceRequest
Type Parameters
Name Description
T

UnloadAsset(Object)

Declaration
public static void UnloadAsset(Object assetToUnload)
Parameters
Type Name Description
Object assetToUnload

UnloadUnusedAssets()

Declaration
public static AsyncOperation UnloadUnusedAssets()
Returns
Type Description
AsyncOperation

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX