FindObjectsOfType
FindObjectsOfType<T>()
public static T[] FindObjectsOfType<T>() ;
Description
Call Object.FindObjectsOfType.
For Unity2023.1 or later, call Object.FindObjectsByType.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
T | Object type |
Returns
an array of found objects