# UE-151106 Enabling Collision on a Spline Mesh component with a Static Mesh assigned causes an assertion to fail while executing in a package

**URL:** <https://forums.unrealengine.com/t/ue-151106-enabling-collision-on-a-spline-mesh-component-with-a-static-mesh-assigned-causes-an-assertion-to-fail-while-executing-in-a-package/684740>\
**Category:** Feedback & Requests\
**Tags:** collision-meshes, spline-mesh-componen, unreal-engine, crash, question\
**Created:** [November 5, 2022, 7:23pm UTC](https://forums.unrealengine.com/t/ue-151106-enabling-collision-on-a-spline-mesh-component-with-a-static-mesh-assigned-causes-an-assertion-to-fail-while-executing-in-a-package/684740 "2022-11-05T19:23:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArselonaMTA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArselonaMTA](https://forums.unrealengine.com/u/ArselonaMTA)\
**Post date:** [November 5, 2022, 7:23pm UTC](https://forums.unrealengine.com/t/ue-151106-enabling-collision-on-a-spline-mesh-component-with-a-static-mesh-assigned-causes-an-assertion-to-fail-while-executing-in-a-package/684740/1 "2022-11-05T19:23:54Z")

</div>

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-151106)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

I found the solution to this problem here.

> [@Set Start and End wont update a Spline collision on a Packaged Game when called from a C++ class](https://forums.unrealengine.com/t/set-start-and-end-wont-update-a-spline-collision-on-a-packaged-game-when-called-from-a-c-class/121538):
>
> Hello I have a bit of a problem with my spline meshes, If i call the Set Start and End function from my C++ class ( where im creating the spline mesh ) then the spline mesh wont have collision in a packaged game ( It does in the editor and in the Standalone Game mode ) If i call the function from a blueprint instead ( currently doing this on my construction script ), Then the spline mesh WILL have collision on a packaged game, Here is the code that im using ATestTrackSplineActor.cpp #inclu…

Enable this static mesh parameter which is used in spline.

Allow CPUAccess.
