C++ code with Blueprint data

Hello. I am coding some functionality for an object in C++ for now and I want to create some movement but instead of hard coding for example a smooth movement like from a sin wave or a movement that starts slowly and then it picks up I want to access a curve or a track that I can draw in Blueprint. So basically I want the data from the Blueprint (a track that changes a variable during a specific time based lets say on a curve) to get it in C++ and manipulate that variable to my likings (adding other calculations to it).

I don’t quit understand how to create a component that is just a curve over time and have access to it in C++. I only found animation sequences that will affect specific objects in specific ways. I just need the raw data of the sequence that is not bound to any objects.

Thanks you.

In your content browser → Miscellaneous → Curve → CurveFloat, make the curve you want;
In .h file:

UPROPERTY(EditAnywhere, Category = "Curves") //you can use another edit flag to your liking
class UCurveFloat* MyCurve;

Now in the blueprint class that derives from your c++ class, find MyCurve and set it to the curve you’ve created.
Now you can use it in your .cpp file.

Oh yes. Thank you. Is exactly what I needed.