This works:
This does not:
Hi ,
Thanks for your report. We have assigned this issue to a member of our support staff, and they will begin investigation as soon as possible. If we are unable to reproduce issue, or we need additional information, our staff member will comment here with additional questions. Otherwise, we will post an âAnswerâ once we have logged issue in our bug database or we have a solution for it.
In meantime, please be sure to review our suggestions for how to report a bug, and feel free to edit your post if you have additional information to provide:
Thanks!
Hi ,
It will actually work at runtime but you will need to set it to Movable.
This is actually by design. You can set mesh with a Construction Script even on a Static component, but not during runtime code like BeginPlay. This is because StaticMesh is just that, static and for it to work at Runtime it will need to be set to Movable.
Cheers,
TJ
Ok, that makes sense. I keep missing that some nodes have a details setup. Would be a nice change that default setting would be Movable when placed in a event graph since with default setting Static it is useless.
Ugh, got caught up by this as well and spent a good hour trying to figure out why it wasnât working. Setting mesh to movable indeed solved issue.
What still doesnât seem to be working though is assigning a material at runtime to this mesh with SetMaterial
. mesh keeps rendering with default grey checker pattern. Any idea what to do there?
Edit: Never mind, just found out here that materials need to be explicitly enabled for use with spline meshes. Therefore this is now working as well.
Just to clarify, hereâs how you set âAdd Spline Mesh Componentâ node to add a moveable static mesh (pardon oxymoron):
You gotta click node to highlight it, then check your details panel, and change mobility in there.
Thank you so much!
Itâs very useful. Thank you very much!
Thank you so much sir . I have worked on ithis problem 2 hour.
thank you