Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.16 KB

Lazlo-Gocs-ComponentUtility-Has-T-(UnityEngine-GameObject_T).md

File metadata and controls

24 lines (21 loc) · 1.16 KB

ComponentUtility.Has<T>(UnityEngine.GameObject, T) Method

Checks the game object for the specified component.

public static bool Has<T>(this UnityEngine.GameObject go, out T component);

Type parameters

T
The type of the component.

Parameters

go UnityEngine.GameObject
The game object.

component T
The returned component.

Returns

System.Boolean
Whether the game object contains the specified component type.