Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FindObjectsInactive

Options to control whether object find functions return inactive objects.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum FindObjectsInactive

Remarks

The Object.FindObjectsByType(), Object.FindFirstObjectByType() and Object.FindAnyObjectByType() functions can take a parameter of this type to indicate whether they should include inactive objects in the array of objects they return. By default, these functions exclude inactive objects.

Fields

Value

Description

ExcludeDon't include inactive objects in the array of objects that the function returns.
IncludeInclude inactive objects in the array of objects that the function returns.