Create an Array of Blueprint Class

Hi friends.

Im trying to create an array of Blueprint Class objects on C++, but I can’t find the way to do it on the forums.
What I want is to create an array of level ‘sections’ wich I previusly created on the game content as blueprint classes, like this:

Then, I want my code to set this ‘objects’ in an actor array:

so I could get the ‘sections’ from the array :slight_smile:

The code I got is just this:

TArray< TSubclassOf<class AActor> > UFunctionMoveScene::SetNewArrayN() {
	TArray< TSubclassOf<class AActor> > ScenesArray;
	TSubclassOf<class AActor> Bloque = 'some way to get one of the sections '
    'some way insert Bloque on Scenes Array'
	return ScenesArray;

Thanks for your help :slight_smile:





these should all give you the ability to save instances of a BP class into an array.
There is a constructor helper to get the BP class to C++

EDIT: this is that constructor helper, CAN ONLY BE USED INSIDE A CONSTRUCTOR OF A CLASS!

UClass* BPClass = StaticLoadClass(UBlueprint::StaticClass(), NULL, TEXT(“/Game/Path/Class.Class_C”), NULL, LOAD_None, NULL);

Then once you have an aray of this class, you can acces elements of the array with: