When running my development package, It always crashes when HeterogeneousVolumeComponent is loaded.
The reason is that when HeterogeneousVolumeComponent is constructed, It will get its material and check the material usage.
Then Crash!!!
MaterialInterface->CheckMaterialUsage(MATUSAGE_HeterogeneousVolumes);
bool UMaterialInstance::CheckMaterialUsage(const EMaterialUsage Usage)
{
check(IsInGameThread());
…
}
AsyncLoading + check(IsInGameThread()) = Crash (development only)
To my understanding, this async load is called by WorldPartition.
So I am curious whether HeterogeneousVolume can work together with WorldPartition?
What should I do to solve the crash issue?