How to set default value of DateTime Struct?
I'm trying to set the default value of a DateTime Struct, but that's not possible. The default default value is "0001.01.01-00.00.00" and if I change it to "2000.01.01-00.00.00" and hit Compile, it changes back to "0001.01.01-00.00.00". Unfortunately I also can't find any node for directly setting the DateTime value. I don't care how, I just want to set this Date once to the date I need it to be, if you have any idea I would appreciate some hints how to do this
asked Feb 16 '15 at 08:59 PM in Bug Reports
Hi John Alcatraz,
This issue just popped up in my list, so I'm not sure how it was overlooked but I apologize.
Testing this in 4.7.3, it appears to no longer be an issue. I'm able to set the default of a variable of type DateTime within the struct.
To update a struct value, use the "Set members in StructName" node, where "StructName" is the name of your structure. You can then get a reference to the Struct and set its DateTime member variable with a DateTime variable in the BP. Currently, there's a bug in 4.7.3 that does crashes the editor if there's a DateTime variable in a Blueprint, but it's integrated into 4.7.4 (and should be available in the latest 4.7 branch if you're building from GitHub).
Hope that helps!
answered Mar 23 '15 at 07:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here