GameObject.GetComponentsInChildren(TComponent type)
Returns all components of Type type in the GameObject or any of its children.
Parameters:
Name | Type | Description |
---|---|---|
type | TComponent | The type of Component to retrieve. |
Returns:
type | Description |
---|---|
TComponent[] | all components of Type type in the GameObject or any of its children. |
Usage
---@type GameObject
local gameobject;
---@type TComponent
local type;
local val0 = gameobject.GetComponentsInChildren(type)