Can I use one FCurve in two timelines?

I am trying to use one float curve in two timelines at a time.
Currently I am getting engine crash to (CurveBase.cpp).

2 Likes

You can use it in as many timelines as you want;
What error do you get?

2 Likes

Did you assign a value to the UCurveFloat pointer you created? Make sure the curve you’re trying to use is not nullptr

2 Likes

yes.
static ConstructorHelpers::FObjectFinder fCurveCR(TEXT(“CurveFloat’/Game/… my curve float’”));
if (fCurveCR.Object)
{
fCurve1 = fCurveCR.Object;
}

Are you sure this works? The fact you have CurveFloat and single quote marks in your address kind of tell me it doesn’t.
Remove everything before /Game and the double name of the curve (if it’s still double), and single quote marks, and try again.

2 Likes

after removing those quotes, now I get an error the curve not found.
I simply created new curve and copied its reference and sets its location, now it is working fine and the animation is now played as expected.

The copied reference has the quotes in the directory link.

Yes, these references look like this:
CurveFloat'/Game/Curves/Curve_Input.Curve_Input'
But you have to remove some parts and have it like this in the address:
/Game/Curves/Curve_Input

2 Likes

Thank You very much helping me in my studies, You just solved my problem.

2 Likes