Find a Specific Actor in Level

I hope this hasn´t been answered elsewhere, I have tried to figure this out for a while now and can´t get it to work.

What I am trying to do is this:

AActor* MyActor;

I get a dropdownMenu in the Editor that allows me to select the Actor.

What I want to do is to set MyActor in C++. (I am spawning a few Actors in the Scene at Runtime so I cannot select them manually).

I just can´t figure it out and am pretty desperate at this point…

You can just set your MyActor variable when you spawn the actor in code. MyActor = GetWorld()->SpawnActor…