The EverythingInSelf
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 current object itself, regardless of their enabled or disabled state.
The EverythingInSelf
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 current object itself, regardless of their enabled or disabled state.
Use FindMode.EverythingInSelf
when you need to retrieve all components from the current object without considering their enabled state. This is useful when you want to perform operations on all components within a single object.
// Example of using FindMode.EverythingInSelf // Assume 'gameObject' is an instance of GameObject var components = gameObject.FindComponents( FindMode.EverythingInSelf ); foreach (var component in components) { // Perform operations on each component component.DoSomething(); }