GameObject.getComponent

Gets a component of the given type.

class GameObject
final
T
getComponent
(
T
)
(
)
if (
is(T : Component)
)

Meta