I’m trying to setup a simple SplineMeshComponent Blueprint. For now I’m using a simple cylinder. When I generate the mesh it’s ok but if I move the mesh its collision rotates 90 degrees along Y axis.
This remains broken in game, so it’s not just some refresh issue. If I generate the mesh again it gets fixed. Putting Generation code to Construction script does not fix it weirdly enough. Neither the BP Actor, SplineMeshComponent or either of the points are rotated in any way - all rotations for all of them are (0,0,0). I have no idea where this is coming from and how to fix it.
Here’s my generation graph:
I’ve tried setting collision before or after Set Start and End or not setting it at all.
EDIT:
Managed to resolve this by:
- enabling ‘Allow Spline Editing Per Instance’ in SplineMeshComponent
- calling SplineMeshComponent->UpdateMesh in Construction Script