ScriptableObjectExtensions.GetAllInstances Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAllInstances(Type) |
Gets all the scriptable object instances in the project. |
GetAllInstances<T>() |
Gets all the scriptable object instances in the project. |
GetAllInstances(Type)
Gets all the scriptable object instances in the project.
public:
static cli::array <UnityEngine::ScriptableObject ^> ^ GetAllInstances(Type ^ assetType);
public static UnityEngine.ScriptableObject[] GetAllInstances (Type assetType);
static member GetAllInstances : Type -> UnityEngine.ScriptableObject[]
Public Function GetAllInstances (assetType As Type) As ScriptableObject()
Parameters
- assetType
- Type
The Type of ScriptableObject you're wanting to find instances of.
Returns
UnityEngine.ScriptableObject[]
An Array of instances for the type.
Applies to
GetAllInstances<T>()
Gets all the scriptable object instances in the project.
public:
generic <typename T>
where T : UnityEngine::ScriptableObject static cli::array <T> ^ GetAllInstances();
public static T[] GetAllInstances<T> () where T : UnityEngine.ScriptableObject;
static member GetAllInstances : unit -> 'T[] (requires 'T :> UnityEngine.ScriptableObject)
Public Function GetAllInstances(Of T As ScriptableObject) () As T()
Type Parameters
- T
The Type of ScriptableObject you're wanting to find instances of.
Returns
T[]
An Array of instances for the type.