Hello,
I’m getting the following error during windows build with UE5.0 (DX12):
UATHelper: Packaging (Windows): [2/13] Compile SharedPCH.Engine.ShadowErrors.cpp
UATHelper: Packaging (Windows): /Engine/Generated/Material.ush:2560:55: error: reference to local variable 'Thickness' declared in enclosing function 'CustomExpression0'
UATHelper: Packaging (Windows): /Engine/Generated/Material.ush:2584:19: error: reference to local variable 'colors' declared in enclosing function 'CustomExpression0'
UATHelper: Packaging (Windows): D3DCompileToDxil failed. Error code: Unbekannter Fehler (0x80004005).
UATHelper: Packaging (Windows): /Engine/Generated/Material.ush:2560:55: error: reference to local variable 'Thickness' declared in enclosing function 'CustomExpression0'
UATHelper: Packaging (Windows): /Engine/Generated/Material.ush:2584:19: error: reference to local variable 'colors' declared in enclosing function 'CustomExpression0'
PackagingResults: Error: reference to local variable 'Thickness' declared in enclosing function 'CustomExpression0'
PackagingResults: Error: reference to local variable 'colors' declared in enclosing function 'CustomExpression0'
PackagingResults: Error: reference to local variable 'Thickness' declared in enclosing function 'CustomExpression0'
PackagingResults: Error: reference to local variable 'colors' declared in enclosing function 'CustomExpression0'
Looks like some material has a custom expression that is not working, but how do I find out which one is it? How can I track down this error? Any help would be great! Thanks!
Kind regards,
Chris