There is an script, that worked in 4.27:
It is part of this tutorial (that part explained at 3:28 video time):
Idea is to create components (spline mesh components) during actor construction script.
I found that something changed over time, and in 5.5 it is not possible to create component in construction script.
Simply “Add Spline Mesh Component” can’t be placed in construction script.
It can be used in Event Graph, for example in Begin Play.
Is there an workaround, or other way to get similar functionality?
It was really nice in this purpose to get things done during construction script - it shows result in editor what is really nice for editing.
I did it in Begin Play as workaround but there is disadvantage - mesh is created only when game works (so no output in editor prior to launch game).