# Can't edit USplineComponent path when attached to USceneComponent

**URL:** <https://forums.unrealengine.com/t/cant-edit-usplinecomponent-path-when-attached-to-uscenecomponent/384252>\
**Category:** Pipeline & Plugins\
**Tags:** scene-component, unreal-engine, editor, CPP, question\
**Created:** [February 8, 2017, 5:45am UTC](https://forums.unrealengine.com/t/cant-edit-usplinecomponent-path-when-attached-to-uscenecomponent/384252 "2017-02-08T05:45:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lekyaira](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lekyaira](https://forums.unrealengine.com/u/Lekyaira)\
**Post date:** [February 8, 2017, 5:45am UTC](https://forums.unrealengine.com/t/cant-edit-usplinecomponent-path-when-attached-to-uscenecomponent/384252/1 "2017-02-08T05:45:14Z")

</div>

I’m trying to create a scene component that can be attached to an actor, such as a character. This component has a spline component on it, which I will be performing calculations on later. I want the designer to be able to edit the spline path in the editor as with a normal spline path.

The same code works in a custom AActor object, but not in a USceneComponent. I see the spline render in the editor, but I cannot select the points to edit the path.

Here’s the code I’m using:

```
#pragma once

#include "Components/SceneComponent.h"
#include "TestSplineComponent.generated.h"

class USplineComponent;

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class SPLINETEST_API UTestSplineComponent : public USceneComponent
{
	GENERATED_BODY()

public:	
	// Sets default values for this component's properties
	UTestSplineComponent();

	// Called when the game starts
	virtual void BeginPlay() override;
	
	// Called every frame
	virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;

		
	UPROPERTY(EditAnywhere, Instanced, Category = "Spline")
		USplineComponent* spline;
};

#include "SplineTest.h"
#include "TestSplineComponent.h"
#include "Components/SplineComponent.h"

// Sets default values for this component's properties
UTestSplineComponent::UTestSplineComponent()
{
	// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
	// off to improve performance if you don't need them.
	PrimaryComponentTick.bCanEverTick = true;

	// ...

	spline = CreateDefaultSubobject<USplineComponent>(TEXT("Path"));
	spline->SetupAttachment(this);
	spline->bSplineHasBeenEdited = true;
}

// Called when the game starts
void UTestSplineComponent::BeginPlay()
{
	Super::BeginPlay();

	// ...
	
}

// Called every frame
void UTestSplineComponent::TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction )
{
	Super::TickComponent( DeltaTime, TickType, ThisTickFunction );

	// ...
}
```

---

<div class="post-metadata">

**Author:** ![wes-borut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wes-borut](https://forums.unrealengine.com/u/wes-borut)\
**Post date:** [November 1, 2018, 6:41pm UTC](https://forums.unrealengine.com/t/cant-edit-usplinecomponent-path-when-attached-to-uscenecomponent/384252/2 "2018-11-01T18:41:14Z")

</div>

Did you ever figure something out here? I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![NormalNomad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NormalNomad](https://forums.unrealengine.com/u/NormalNomad)\
**Post date:** [October 20, 2019, 9:55pm UTC](https://forums.unrealengine.com/t/cant-edit-usplinecomponent-path-when-attached-to-uscenecomponent/384252/3 "2019-10-20T21:55:25Z")

</div>

Bueller? same issue
