Hello!
I am trying to build standard Metahumans and other standard assets in Unreal Engine 5.4 for Windows, and I am constantly getting the next error during the header material build.
But in Editor, whatever option to launch a game I use - all works well for example hair has physics in Metahumans, but when I build a game - hair stops working, it stops moving
How to fix that?
UATHelper: Packaging (Windows): LogShaderCompilers: Warning: Failed to compile Material /Game/MetaHumans/Common/Face/Materials/M_lacrimal_fluid.M_lacrimal_fluid for platform PCD3D_SM6, Default Material will be used in game.
UATHelper: Packaging (Windows): /Engine/Private/CapsuleLightIntegrate.ush:146:19: error: variable length arrays are not supported in HLSL
UATHelper: Packaging (Windows): uint NumSamples[ NumSets ] =
UATHelper: Packaging (Windows): ^
UATHelper: Packaging (Windows): /Engine/Private/RectLightIntegrate.ush:286:19: error: variable length arrays are not supported in HLSL
UATHelper: Packaging (Windows): uint NumSamples[ NumSets ] =
UATHelper: Packaging (Windows): ^
PackagingResults: Warning: Failed to compile Material /Game/MetaHumans/Common/Face/Materials/M_lacrimal_fluid.M_lacrimal_fluid for platform PCD3D_SM6, Default Material will be used in game.
PackagingResults: Error: variable length arrays are not supported in HLSL
PackagingResults: Error: variable length arrays are not supported in HLSL
UATHelper: Packaging (Windows): LogShaderCompilers: Warning: Failed to compile Material /Game/MSPresets/M_MS_Glass_Material/M_MS_Glass_Material.M_MS_Glass_Material for platform PCD3D_SM6, Default Material will be used in game.
UATHelper: Packaging (Windows): /Engine/Private/CapsuleLightIntegrate.ush:146:19: error: variable length arrays are not supported in HLSL
UATHelper: Packaging (Windows): uint NumSamples[ NumSets ] =
UATHelper: Packaging (Windows): ^
UATHelper: Packaging (Windows): /Engine/Private/RectLightIntegrate.ush:286:19: error: variable length arrays are not supported in HLSL
UATHelper: Packaging (Windows): uint NumSamples[ NumSets ] =