# Hiding USplineComponents in C++ in editor

**URL:** <https://forums.unrealengine.com/t/hiding-usplinecomponents-in-c-in-editor/415340>\
**Category:** Rendering\
**Tags:** visibility, splinecomponent, unreal-engine, editor, CPP, question\
**Created:** [January 23, 2018, 12:58pm UTC](https://forums.unrealengine.com/t/hiding-usplinecomponents-in-c-in-editor/415340 "2018-01-23T12:58:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WimL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WimL](https://forums.unrealengine.com/u/WimL)\
**Post date:** [January 23, 2018, 12:58pm UTC](https://forums.unrealengine.com/t/hiding-usplinecomponents-in-c-in-editor/415340/1 "2018-01-23T12:58:45Z")

</div>

How do I hide USplingComponents in the editor (in game, they should also be hidden) in c++?

I use the splines to generate other geometry along them, but if the splines are shown, the scene gets too crowded.

I tried `spline->SetVisibility(false)` and `spline->bVisible=false`, but that doesn’t seem to do anything.
