GetComponent(Type)
abstract
public abstract object? GetComponent(Type componentType) Gets the component with the specified type.
Parameters
componentTypeType- The component type.
Returns
The component with the specified type.
public abstract object? GetComponent(Type componentType)componentTypeTypepublic abstract object? GetTarget()