/Engine/Plugins/Experimental/ModularGameplay/Source/ModularGameplay/Public/Components/ControllerComponent.h
If this controller is possessing a pawn return the pawn, if not return the view target
template<class T> T * GetPawnOrViewTarget() const