Timeline Curve in C++?

Hi! I started to touch timelines, and i found pretty nice tutorial (here is a link if someone needs: Timeline in c++ | Unreal Engine Community Wiki), but here and many other places… people use Curve asset from editor and then use it in C++… why is that? Is it not recommended to implement Curve in code as well? How can i do it if i would like to try? I can’t find many information about it.

Hello, hope I can give some insight.

You can access functions and many things from curves in C++ such as with the base class here.

However, building and editing a curve for your usage is much easier to do in the editor. You’re able to manually adjust your values, and visually see the curve, unlike with just entering the values in a CSV style like how you create the curve in C++. More than likely, they are making the curves in the editor to easily tune the values if during gameplay and testing, they need to change something quick and easy, as opposed to changing the values in C++ without a visual cue, recompiling, then testing in the game.

I would suggest making your Curves in the editor like they do, as it will help you later down the line with headaches and testing if you ever need to edit their values.

1 Like

Hi, that’s what i thought, thanks! I should be using c++ only for important things ;D

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.