Edit

Share via


ScriptableObjectExtensions.GetAllInstances Method

Definition

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.

Applies to