# Reference to curve

**URL:** <https://forums.unrealengine.com/t/reference-to-curve/295487>\
**Category:** Editor Scripting\
**Tags:** reference, object-reference, unreal-engine, external-reference, curve, question\
**Created:** [October 7, 2014, 12:51pm UTC](https://forums.unrealengine.com/t/reference-to-curve/295487 "2014-10-07T12:51:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ccc20063](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ccc20063](https://forums.unrealengine.com/u/anonymous_user_ccc20063)\
**Post date:** [October 7, 2014, 12:51pm UTC](https://forums.unrealengine.com/t/reference-to-curve/295487/1 "2014-10-07T12:51:26Z")

</div>

I would like to add a reference to a float curve (which should be FRichCurve) in order to be able to create it externally in a separate object, and then assign it in my blueprint properties.  
I’ve tried to use FRichCurve\*, TSharedPtr, TSubobjPtr, but w/o any success, as it doesn’t compile. And using FRichCurve alone is valid for compilation, but I have nothing in my BP attribute…  
Any idea how to do that?

---

<div class="post-metadata">

**Author:** ![CrashAngel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crashangel/32/467279_2.png) [@CrashAngel](https://forums.unrealengine.com/u/CrashAngel)\
**Post date:** [May 9, 2015, 2:39am UTC](https://forums.unrealengine.com/t/reference-to-curve/295487/2 "2015-05-09T02:39:46Z")

</div>

Hi Man, You Fix This error… Post your code to create FRichCurve Object Please??

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_908c4e73](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_908c4e73](https://forums.unrealengine.com/u/anonymous_user_908c4e73)\
**Post date:** [May 9, 2015, 10:48am UTC](https://forums.unrealengine.com/t/reference-to-curve/295487/3 "2015-05-09T10:48:14Z")

</div>

Hi,

Yes, I found the answer, you just need to use a UCurveFloat reference:

```
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = Curve)
UCurveFloat* MyCurve;

```

and then use it as follows:

```
float CurveValueY = MyCurve->GetFloatValue(CurveParamX);

```

---

<div class="post-metadata">

**Author:** ![CrashAngel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/crashangel/32/467279_2.png) [@CrashAngel](https://forums.unrealengine.com/u/CrashAngel)\
**Post date:** [May 10, 2015, 11:12am UTC](https://forums.unrealengine.com/t/reference-to-curve/295487/4 "2015-05-10T11:12:10Z")

</div>

do you know if there like me create a FRichCurve and assign in a UCurveFloat to use the timeline?
