Been trying to get FindObect to return a pointer to my cameraactor in root of scene, I want a free cam for my game play i.e. not attach to anything. I tried many combination of paths, name, etc. Anybody who used it can suggest clues or example would be great. Or other way around, don’t want my pawn input receiver to instantiate a default child cam at start.
My code below, in beginplay() of base class.
const char* bytes = “/Game”;//Zaxx_Cam
size_t n = strlen(bytes);
const FString& Str = FString(n, bytes);
const TCHAR* CamName = Str;
UObject Outer = GetWorld();
ACameraActor* CamActor = FindObject(Outer, CamName, false);