GameObjectExtensions.HasComponent
Extension Method in GameObjectExtensions
Declaration
public static bool HasComponent(this GameObject gameObject, Type component)Description
Checks if the game object has a component of the specified type.
Parameters
| gameObject | The game object to check for the component. |
| component | The type of component to check for. |
Returns
| bool | True if the component exists, false otherwise. |