# Can USplineComponent methods be accessed in the editor via C++?

**URL:** <https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311>\
**Category:** C++\
**Tags:** splinecomponent, unreal-engine, Spline, CPP, question\
**Created:** [July 26, 2018, 3:59pm UTC](https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311 "2018-07-26T15:59:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_62e0f51e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62e0f51e](https://forums.unrealengine.com/u/anonymous_user_62e0f51e)\
**Post date:** [July 26, 2018, 3:59pm UTC](https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311/1 "2018-07-26T15:59:41Z")

</div>

I am trying to use a USplineComponent to position actors in my editor mode module. When I call USplineComponent-\>GetSplineLength() in editor mode it crashes without explanation and doesn’t give a debug log. Is it possible to get location information from a spline component in the editor? I need to use GetSplineLegth() and GetLocationAtDistanceAlongSpline().

[Log file][1]  
[1]: (63.6 KB)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 26, 2018, 11:28pm UTC](https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311/2 "2018-07-26T23:28:20Z")

</div>

What do you mean “Debug Log” did you check log in Saved/Logs? Also if you don’t have any log that means it might be invalid/nullptr call, if you use laucher version go to installation options and get engine source and debug symbols after that run editor VS debugger and when crash will happen VS will point you to faulty code line and it also give you call stack.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_62e0f51e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62e0f51e](https://forums.unrealengine.com/u/anonymous_user_62e0f51e)\
**Post date:** [July 27, 2018, 5:18pm UTC](https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311/3 "2018-07-27T17:18:00Z")

</div>

I have the debug symbols installed and was expecting it to bring up the typical crash window with an error log. I will check Saved/Logs to see if it is there.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_62e0f51e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_62e0f51e](https://forums.unrealengine.com/u/anonymous_user_62e0f51e)\
**Post date:** [July 27, 2018, 6:25pm UTC](https://forums.unrealengine.com/t/can-usplinecomponent-methods-be-accessed-in-the-editor-via-c/430311/4 "2018-07-27T18:25:34Z")

</div>

ok, I attached a log file. Thanks for pointing out that it might be there.
