This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.
If a TArray of spline components is created in code it is not possible to edit/add nodes to the spline inside a blueprint.
1. Open UE4Editor (any project)
2. Add code to project based on actor (MyActor)
3. Add the following code the header file:
class USplineComponent; //between include statemens and UCLASS macro()
UPROPERTY(EditAnywhere, Instanced, Category = "Path spline")
TArray <USplineComponent*> PathSpline;
4. Add the following code to the constructor:
RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("SceneComp")); PathSpline.Add(CreateDefaultSubobject<USplineComponent>(TEXT("Path"))); PathSpline[0]->AttachParent = RootComponent;
5. Compile the project
6. Create a blueprint based on MyActor
7. In the components hierarchy, select the Spline component
Result:
The nodes for the spline cannot be moved/edited.
Head over to the existing Questions & Answers thread and let us know what's up.
6 |
Component | UE - Gameplay - Components |
---|---|
Affects Versions | 4.7.5, 4.8, 4.14 |
Created | Apr 20, 2015 |
---|---|
Resolved | Mar 26, 2018 |
Updated | Mar 26, 2018 |