Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Reference to curve

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?

Product Version: Not Selected
more ▼

asked Oct 07 '14 at 12:51 PM in C++ Programming

avatar image

6 1 4 5

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered May 09 '15 at 02:39 AM

avatar image

101 10 22 32

(comments are locked)
10|2000 characters needed characters left


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);
more ▼

answered May 09 '15 at 10:48 AM

avatar image

41 9 13 20

avatar image CrashAngel May 10 '15 at 11:12 AM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question