Redigera

Dela via


ITargetHolder.GetComponent<TComponent> Method

Definition

Gets the component with the specified type.

public TComponent GetComponent<TComponent> () where TComponent : class;
public TComponent? GetComponent<TComponent> () where TComponent : class;
abstract member GetComponent : unit -> 'Component (requires 'Component : null)
Public Function GetComponent(Of TComponent As Class) () As TComponent

Type Parameters

TComponent

The component type.

Returns

TComponent

The component with the specified type.

Applies to