Add a fixed point on curve

Does anyone know how to add a point and make this point uneditable?

I hope the new point is fixed on the curve and it can not edit in unreal editor.

I konw that “FRuntimeFloatCurve” provide a way to add new points on the curve.

ex:

FRuntimeFloatCurve Curve;
FKeyHandle h;
Curve.EditorCurveData.AddKey(0.5f, 0.5f, true, h);

But I don’t know what attributes can make the point fixed on the curve.

Thanks.

from what i think you want,
you could make the curve private,
create a function inside the class which would handle updating (add/remove/ adjust) the curve,
inside that function you could add as many conditions as you like