My Actor has an ActorComponent which spawns a SplineComponent and a NiagaraComponent in its OnRegister() function. The NiagaraComponent uses the SplineComponent to spawn ribbon particles. The user should only see the particles, not the spline itself. Thus I’d like to hide it even when the Actor is selected.
If I set the SplineComponent’s visibility and bDrawDebug to false, it’s hidden when the Actor is unselected or when I move it. But when I deselect and select it again, the spline gets visible until I move or deselect it.
As a workaround for this one scenario I unregister the SplineComponent every time its Actor gets selected. It works but feels a bit hacky. Is there a better, more elegant way to keep the spline hidden?