My question is about this behavior, normally if you have a spline in your Blueprint and have it do some stuff in the Construction Script, like add SplineMesh along this Spline, you can drop the Blueprint into the level, edit the Spline and it updates as you go, it updates the meshes or whatever you are using it for. With UE5.4, this does not update. You can edit the Spline but then you have to drag the actual Blueprint object for it to update the Construction Script stuff. My question is, is this intended behavior?, if so, do I have to do something else to have it update correctly?. Or is it possibly a bug?.
Hi, I noticed that too - I donāt know if itās a bug or not, but it is a lot faster to edit the splines and Iād be happy to call it a āfeatureā - I ended up just adding a function callable from the editor called āRedrawā which calls the construction script. I did have a flag called āno drawā in my BP to speed up the editing, but itās not needed now.
If you did want it to draw while editing, you could get your BP to tick in editor, then redraw at a certain frequency - that will actually reduce the number of builds as well - the dragging construction gets called a lot more than you need.
Thanks for the reply. Iāll certainly look into that and see how it works. Iād think if it was a feature or a change in behavior, there might be an actual āreplacementā setting or something since you would want this a lot of times. Itās not the best thing to have to always manually update the stuff. Anyway, thanks for your reply on this.
I hope this is a bug and will be resolved by Epic, because at best doing anything extra is a workaround and not a solution and having real time feedback is really required. If the real time feedback becomes slow, itās easy to control it by sectioning things off.
I just need to know if this is in fact a bug or not because I have some Marketplace content that uses this and are now slightly broken and unfixable and I canāt officially give 5.4 support because of it.
in my project I have a large number of splines of a given type, covered by a PCG volume. Something is wrong here, it may cause an issue in 5.3; after creating a copy in 5.4, I located the problem, corrected it and SOME of these splines immediately showed the debug data, even the ones completely outside the PCG volume. Others did not, though they are of the same type.
All shorter splines in this image were NOT included within the original location of the PCGVolume.
Now I moved the PCGvolume to this location, the now selected (yellow) spline is completely within the volume but debug info will NOT show in the window. After I exit UE, and restart it,it still doesnāt show debug info. Selecting this spline, it has the right type. and replace the type by itself, it cuts the spline to the minimal size - but shows the debug info:
but I have to redraw the spline and now it is reecognized by the PCG graph as a spline and the intended actions are applied.
I consider this a bug, but if this is meant to be a feature, please make it an optional behaviour.
Hi,
The issue has been reported here: Unreal Engine Issues and Bug Tracker (UE-212309)
You can upvote it to make it move up the cue.
me too, This results in the rebuild mesh to the geometry script also not being called
This is a big issue as it breaks behaviour of some of my spline-based blueprints and I donāt see easy fix.
I hope Epic will revert Spline Component to old one, which didnāt change much from UE4 to UE5.3.
One more thing I noticed is that when editing Spline Component it automatically selects Spline Component in Details panel so I have no easy access to blueprint options. This is unneeded and unconvinient.
In its current state, it is completely unusable to me.
I build the entire game with spline-based actors, but now I cant change the scale anymore because the stuff isnt being updated.
The changes only happen if the actor is moved after āpullingā on the splines.
Orange: New Actor with changed splines, mesh remains at default size
Blue: the same actor after being moved around after spline edit (color was changed by me) ā this is your workaround, for now
It seems that splines dont cause an āupdateā anymore, effectively making them really annoying to deal with now, and on top of that we now need to constantly double-click them too.
And thus, I learned what āpain and sufferingā meant - have to finish this with this bug in place (I use splines for almost everything, I love themā¦ ouch - if I only had noticed earlier before making progress in 5.4)
this broke my custom tools. thanks for pointing it out as I didnt know whats happening.
is there anything we can do to fix this?
edit:
I ve made a function which executes construction script and set āCall in Editorā == true, so I just have to press a button.
I reported the issue initially and added a fix in the engineās SplineVisualizer Componentās HandleInputDelta
Just after TransformSelectedKeys and called PostEditMove() on the actor there.
// Transform the spline keys using an EPropertyChangeType::Interactive change. Later on, at the end of mouse tracking, a non-interactive change will be notified via void TrackingStopped :
// FIX_BEGIN
// replace
// return TransformSelectedKeys(EPropertyChangeType::Interactive, DeltaTranslate, DeltaRotate, DeltaScale);
// with
bool Result = TransformSelectedKeys(EPropertyChangeType::Interactive, DeltaTranslate, DeltaRotate, DeltaScale);
if (AActor* OwnerActor = SplineComp->GetOwner())
{
OwnerActor->PostEditMove(true);
}
return Result;
// FIX_END
Doesnāt fix the issue for all other components as it seems a refactor happened and the class that emits these events in the editor got swapped out under the hood.
But it does fix it specifically for splines.
but this does sadly require an engine change.
The issue is being looked into but for the moment you should be able to enter āEditor.ComponentVisualizer.AutoSelectComponent falseā into your console to at least get on-release functionality working again.
With this console command it is a little bit better. But now blueprint updates only when mouse button is released. No updates when dragging spline point.
I liked it when I saw instant blueprint update during dragging.
I still cannot update my spline-based products on Marketplace to support 5.4.
Itās not a good idea to add note to product description like āfor my blueprint to work in 5.4 enter this console command EACH TIME you open projectā
So Iām voting for full revert of spline functionality to like it was in previous UE versions.
I found out that making Spline a Default Scene Component solves the problem. This should help for some blueprints.
Do you mean making it the root component of an actor?
Yes. Root Component.
Works for me! Thanks for sharing. Also, I voted on the issue. I hope this gets fixed in a patchā¦
this works but now the spline doesnāt move with the mesh anymore
I find the console command hit-and-miss. Sometimes it updates on mouse release, sometimes not.
Can you explain in a little more detail where this change goes? I canāt seem to find SplineVisualizer Component class?