So I’ve massively simplified it to take arrays/objects out of the equation, and just use an int:
void AResourceManager::BeginPlay()
{
Super::BeginPlay();
MyNumber = 555;
}
Then when later read:
FResourceInfo* AResourceManager::Find()
{
MyNumber = 333;
}
Throws when reading MyNumber:
Exception thrown: write access violation.
this was nullptr.
MyNumber is a UPROPERTY in the header file. When it says ‘this’, does it mean MyNumber, or the instance of the class it’s executing itself?