Material Functions cannot output Texture Objects or Booleans.
This seems to be because the Material Editor believes that the outputs are Floats, and forbid connections to inputs that take Textures or Bools, while allowing non-compiling connections to inputs that take a Float.
Also tested on //UE5/Release-5.5, CL: 36410558
1. Download the attached test project and open
2. Open the Material "/Game/M_Test"
3. Observe the Material Function "MF_IOTextureTest" is a passthrough for the four texture types it uses (Texture2D, TextureCube, Texture2DArray, VolumeTexture)
4. Observe the Material Editor will not let you connect the outputs of the Material Function "MF_IOTextureTest" to the "Tex" input on a Texture Sample Expression, with the Tooltip saying "Float is not compatible with Texture"
5. Observe the Material Editor will allow you to connect the outputs of the Material Function "MF_IOTextureTest" to the "UVs" input on a Texture Sample Expression, but this creates the compile error "Cannot cast between non-numeric types texture2D and float2." The compile error is expected, but the ability to connect is not.
6. Observe the MF_IOBooleanTest Material Function is a passthrough for the "Bool" type
7. Observe that you cannot connect the output of the Material Function "MF_IOBooleanTest" to the "Apply View MipBias" input on a Texture Sample Expression, with the Tooltip saying "Float is not compatible with Bool"
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Delay nodes occasionally don't fire the "Completed" output in a nativized build
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
How to achieve HLSL Multiple Render Target in Material blueprints?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-226057 in the post.
3 |
Component | UE - Rendering Architecture - Materials |
---|---|
Affects Versions | 5.4, 5.4.4 |
Created | Sep 30, 2024 |
---|---|
Updated | Oct 3, 2024 |