FindMode EverythingInChildren

robot_2Generated
code_blocksInput

Description

The EverythingInChildren field is a member of the FindMode enumeration in the Sandbox API. It is used to specify a search mode that targets all components within the children of a GameObject. This includes both enabled and disabled components, providing a comprehensive search scope within the immediate child hierarchy.

Usage

Use FindMode.EverythingInChildren when you need to retrieve all components from the children of a GameObject, regardless of their enabled state. This is particularly useful when you want to perform operations on all child components without filtering by their active status.

Example

// Example of using FindMode.EverythingInChildren

// Assume 'gameObject' is a reference to a GameObject
var components = gameObject.FindComponents( FindMode.EverythingInChildren );

// Iterate through all components found in the children
foreach (var component in components)
{
    // Perform operations on each component
    component.DoSomething();
}