Description

For example, If you try to call GetMaterialOpacityMaskClipValue() from a custom node, the editor will report a compilation error, as shown in the attached image.
[Link Removed]

[SM5] /Engine/Generated/Material.ush(2025,8-40):  error X3004: undeclared identifier 'GetMaterialOpacityMaskClipValue'

This is because the functions in the MaterialTemplate.ush are declared after the CustomNode.
Putting these forward declarations or moving the custom node location to backward enables to access these functions from custom node.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-116844 in the post.

1
Login to Vote

Duplicate
ComponentUE - Graphics Features
Target Fix5.1
CreatedMay 31, 2021
ResolvedMar 22, 2022
UpdatedDec 2, 2022