Same… But the problem can be solved!
It’s identical to what fredakilla did, but replace the TextureSampleParameter2D with a TextureObject. Connecting a TextureObject to your custom node will generate a Texture2D and SamplerState parameter in your CustomExpression function.
The blueprint nodes and result can be seen below. (The code in the image is **not **the right code, use the code in the code block. See why in the edits at the bottom)
The custom node code:
return TexSample.SampleLevel(TexSampleSampler, UV, 0);
Edit: Though this has the issue that the material won’t apply to your mesh, even though the material editor preview is correct. Looking for how to solve it.
Edit2: Post updated, found the solution here: https://forums.unrealengine.com/development-discussion/rendering/1447762-error-x4532-cannot-map-expression-to-cs_5_0-instruction-set
