Skip to content

TargetHolderExtensions.GetComponent(ITargetHolder)

GetComponent(ITargetHolder)

staticextension
View source
public static TComponent? GetComponent<TComponent>(this ITargetHolder targetHolder)
Gets the component with the specified type.

Parameters

targetHolderITargetHolder
The target holder from which to retrieve the component.

Returns

The component with the specified type.