Hi,
I want to check if an actor has some kind of camera component, be it UCameraComponent, USceneCaptureComponent, etc…
As of now, we can do checks like
TArray<UCameraComponent*> CameraCompArray;
MyActor->GetComponents**<UCameraComponent>**(CameraCompArray);
if(CameraCompArray.Num() > 0)
{
....
}
else
{
....
}
But, then we need to do for each possible camera class. This somehow seems redundant. Am I missing something here? Afaik, there is no common base class.
Cheers!