FindObjectUtility Class
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.
A static utility used to avoid deprecated Find Object functions in favor of replacements introduced in Unity >= 2021.3.18.
public static class FindObjectUtility
type FindObjectUtility = class
Public Class FindObjectUtility
- Inheritance
-
FindObjectUtility
Methods
| Name | Description |
|---|---|
| FindAnyObjectByType<T>(Boolean) |
Returns an object matching the specified type. |
| FindFirstObjectByType<T>(Boolean) |
Returns the first object matching the specified type. |
| FindObjectsByType(Type, Boolean, Boolean) |
Returns all objects matching the specified type. |
| FindObjectsByType<T>(Boolean, Boolean) |
Returns all objects matching the specified type. |