| MonoBehaviourExtensionsGetComponentsInChildrenAlwaysT Method |
Finds all components of the type T on the same object and on a children down the hierarchy. This method also works
in the editor and when the game object is inactive.
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax [VersionAttribute(1, 1, 0)]
public static T[] GetComponentsInChildrenAlways<T>(
this Component component
)
where T : Component
Parameters
- component
- Type: Component
Type Parameters
- T
Return Value
Type:
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Component. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also