UE5修改材质颜色时出现的float3 and float4问题(已解决)
ZQ的月光
2024年10月27日 17:42
ue5虚幻ue5教程

解决方法(省流):

增加Mask节点:


下面是遇到问题的过程

原蓝图如下:

在网上学习如何修改颜色,参考视频:【虚幻引擎颜色选择器小工具】 【精准空降到 34:26】 网页链接​

发现在这种情况下,直接修改车身的颜色会报错。

SM6 arithmetic between types float3 and float4 are undefined

于是搜寻到了一个答案:

源地址:Material Editor: Failed to cast float4 to float3 when using Vector parameter - Development / Rendering - Epic Developer Community Forums

https://forums.unrealengine.com/t/material-editor-failed-to-cast-float4-to-float3-when-using-vector-parameter/284604

照他说的做。然后就解决了:

感谢观看~希望搬运到简中互联网上有所帮助。