Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.05 KB

Lazlo-Gocs-ComponentUtility-Get-T1_T2-(UnityEngine-GameObject).md

File metadata and controls

24 lines (21 loc) · 1.05 KB

ComponentUtility.Get<T1,T2>(UnityEngine.GameObject) Method

Gets the specified components from the game object.

public static (T1,T2) Get<T1,T2>(this UnityEngine.GameObject go);

Type parameters

T1
The type of the first component.

T2
The type of the second component.

Parameters

go UnityEngine.GameObject
The game object.

Returns

System.ValueTuple
The components. Each component can be null if not contained in the game object.