Class GameObjectExtensions
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Provides useful extension methods for GameObjects.
[Version(3, 0, 0)]
public static class GameObjectExtensions
- Inheritance
-
GameObjectExtensions
- Inherited Members
Methods
- GetRequiredComponentInChildren<T>(GameObject)
Gets a component of the given type in one of the children, or fail if no such component can be found.
- GetRequiredComponent<T>(GameObject)
Gets a component of the given type on the game object, or fail if no such component can be found.