Skip to content

Api > MLClickable > GetComponents()


MLClickable.GetComponents([]{Generic : Component|info} type)⚓︎

Returns all components of Type type in the GameObject.

Parameters:⚓︎

Name Type Description
type []{Generic : Component info}

Returns:⚓︎

type Description
[]{Generic : Component info}[]

Usage⚓︎

---@type MLClickable
local mlclickable;

---@type TComponent
local type;


local val0 = mlclickable.GetComponents(type)