My TArray of one structure works when declared inside a function, but not when declared on header file

the class AGameModeBase that you derive you game mode from does not have a BeginPlay to override. I’m guessing it’s not being called and your passed on reference is not being set.
Put a breakpoint there and run the project and see if it fires.

I’m guessing you might need to replace that functionality with the InitGame method override

1 Like