How to retrieve newObject by name?

Correct, but how would you do that inside of “CubeObject(Actor)”? this->find? I see a findcomponentbyClass. So it looks like this returns an array. how would I know which object in that array i’m reffering to? Is this array a TMap where I can then search it using the provided FName?

Lets say I create 20 newobject, and each one I give a unique name when I call newobject. It seems like this name provided would be the key to accessing that object later. Obviously the pointer that you create when you call newobject is the way to access it right then. This is why I have a Tmap with names, but this seems rather redundant.