Language
Edit

FindObjectUtility Class

Definition

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.

Applies to