how to create a class reference array of room(this is my custom type) type in C++ ?

for a proper level generator, I need double arrays from c++. that’s why I’m rewriting the code in c++, alas, I can’t find documentation for the syntax, so I don’t know how to declare the mass of variables not from std c++. also, if you know how to view the nativized code, it would help a lot.

This topic has been moved from International to Programming & Scripting.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this category change will help you to get an answer.

In the meantime, good luck and happy developing! :slight_smile:

I think what you are looking for is TSubclassOf. Here’s an array of actor classes: TArray<TSubclassOf<AActor>>. When you want to add to this array from code, I believe you’ll have to use the StaticClass of your class. In this case: AActor::StaticClass. Alternatively, you could also use TArray<UClass*>.