Can someone explain this extremely weird behavior?

Hello there. Recently Ive faced this random issue which I cannot seem to find any explanation for it. I am using a spline to create procedural static meshes . I have a blueprint derived from my C++ class. In C++ I create a scene component as my Root Component and also a Spline Component. The weird issue happens with spline’s length. If I change spline component relative scale in the editor and print out the length , the length seem to increase based on the X scale; However, If I add my spline component manually from the blueprint instead of creating it in C++ (construction), the spline length doesn’t change when I change it’s relative scale. Is there any explanation for this? I would appreciate it if someone can help me.

1 Like