Hi I looked at other posts first and couldn’t find what I was needing.
I have several TArray<Class*> ArrayA, ArrayB. ArrayC Where Class is my own struct.
Each array is a set of buildings inside a ‘city’.
The player can switch from city to city by pressing button, which outputs basic int 1,2,3…
I’d like to use a pointer to be able to access a particular city with the same code
i,e, user selects city B, pointer now points to ArrayB then city tasks done.
Player then switches to city C… same process
Combining all the city elements into one array is too big and must be kept separated.
How do I declare the pointer and assign it to a TArray<Class*> ?
I’ve done simple pointers with int, float etc but I cant get why I cant do it with TArray
Thanks for any help!