Table of Contents

Method GetComponentInChildrenAlways

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

GetComponentInChildrenAlways<T>(Component)

Finds a component of the type T in on the same object, or on a child down the hierarchy. This method also works in the editor and when the game object is inactive.

[Version(1, 1, 0)]
public static T GetComponentInChildrenAlways<T>(this Component component) where T : Component

Parameters

component Component

Returns

T

Type Parameters

T