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"

Setting FDateTime in Blueprint defaults has no effect.

I have an FDateTime declared in a C++ class like this:

 FDateTime StartDate;

I then set the default value in a derived Blueprint and the value is correctly parsed and will save properly with the Blueprint. However, when I try to use the FDateTime, its value is equal to whatever default I set in C++, or 0 if I leave it to be zero-initialized by the UObject system.

Why is this happening?

On a side note, is there any way we can edit FDateTimes in BP other than the current text box awkward string manipulation? There's already a DateTimeStructCustomization class in the Engine which could be extended with some kind of calendar-style system.

Product Version: UE 4.15
more ▼

asked Apr 25 '17 at 04:04 PM in Blueprint Scripting

avatar image

210 7 13 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Just ran into this myself in my project using 4.17. However, I checked in the 4.18 preview and it seems to be working correctly there if you're still working on this and able to upgrade once it's released.

more ▼

answered Oct 16 '17 at 04:15 PM

avatar image

929 42 61 210

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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