hi,
you didn’t say what your root class is, but assuming it is ACharacter you could maybe use these methods ?
virtual UActorComponent* FindComponentByClass(const UClass* Class) const OVERRIDE;
template<class T>
T* FindComponentByClass() const
{
return AActor::FindComponentByClass<T>();
}
they are both defined in ACharacter.h and if they aren’t what you need maybe you can take a look what those methods do and implement a variation of them.
Hope that helps
Chrys