arvius23
(arvius23)
1
Assertion failed: !HasAnyFlags(RF_NeedPostLoad) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialInstance.cpp] [Line: 2444]
This message shows up when I try to start my project. I don’t know what’s causing the issue or how to find it.
3dRaven
(3dRaven)
2
Seems your project is crashing while building shaders
void UMaterialInstance::CacheShadersForResources(EShaderPlatform ShaderPlatform, const TArray<FMaterialResource*>& ResourcesToCache, EMaterialShaderPrecompileMode PrecompileMode, const ITargetPlatform* TargetPlatform)
{
UMaterial* BaseMaterial = GetMaterial();
#if WITH_EDITOR
check(!HasAnyFlags(RF_NeedPostLoad));
check(BaseMaterial!=nullptr && !BaseMaterial->HasAnyFlags(RF_NeedPostLoad));
UpdateCachedData();
// more code.....
Remarks
Caches shader maps for an array of material resources.
Try this solution: