How can I access Actors in the scene from C++?

I’m trying to access actors in the scene from C++ code. How can I achieve this?

Cheers

First you will need to get a reference to the Actor. Take a look at Rama’s guide on iterating through all the actors in the world:

A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine ForumsObject%26_Actor_Iterators,_Optional_Class_Scope_For_Faster_Search

Thank you for the prompt answer, that solved it :slight_smile:

Cheers