I’m declaring a TArray in the header and have verified it exists in the constructor with a size of 0. But when I try to access it later on poof it’s gone.
.h
private:
UPROPERTY()
TArray<UWorldInstanceData*> InstanceList;
.cpp
UWorldInstanceData* UWorldInstanceManager::GetWorldInstanceData(int32 InWorldInstanceId, bool bCreate)
{
for (int32 i = 0; i < InstanceList.Num(); i++) <-- crashes here
{