I’ve found the solution in my case. The material you use on the spline mesh component needs to have the checkbox “Used with Spline Meshes” enabled.