Skip to main content

WheelCollider.GetComponentsInParent(TComponent t)

Returns all components of Type type in the GameObject or any of its parents.

Parameters:

NameTypeDescription
tTComponentThe type of Component to retrieve.

Returns:

typeDescription
TComponent[]all components of Type type in the GameObject or any of its parents.

Usage

---@type WheelCollider
local wheelcollider;

---@type TComponent
local t;


local val0 = wheelcollider.GetComponentsInParent(t)