x

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"

Timeline curve in c++

Hi,

I currently am working on an automated door system coded entirely in C++. So far so good, I get the door moving in any direction I desire with FMath::VInterpTo().

However, I would like to use a curve drawn by the user, something like the BP Timeline Curve (just like that https://d3ar1piqh1oeli.cloudfront.net/5/5d/CubicLockedKeyframe1_DT.png/800px-CubicLockedKeyframe1_DT.png taken from https://wiki.unrealengine.com/Blueprint_Automated_Door_Tutorial).

I however am unable to find a component, or a way to let the user edit a curve in the editor properties of my class. Any leads on that ?

Thanks in advance.

Product Version: Not Selected
Tags:
more ▼

asked Feb 17 '15 at 07:42 PM in C++ Programming

avatar image

Ormindo
13 1 2 6

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

1 answer: sort voted first

You can do that:

 UPROPERTY(EditInstanceOnly, Category = Tools, DisplayName = "Test Curve")
 UCurveFloat* mCurve;

This will enable you to have a link to a FloatCurve in the editor. To create such a curve, rigth click in the Content Browser to create a new asset, under the Miscelleanous section, you will find Curve. Here is a screenshot to help:

alt text

curve.png (119.4 kB)
more ▼

answered Feb 17 '15 at 08:21 PM

avatar image

MickD777
2.1k 69 36 258

avatar image Ormindo Feb 17 '15 at 08:27 PM

That is EXACTLY what I needed, thanks a lot !

(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