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"

[4.17.2] Why does my value not reset to default when I click Reset to Default?

In the editor, there is a little yellow icon next to every variable in every blueprint. As I understand it, I can click that icon and reset the variable's value to whatever the default value of that variable is supposed to be.

In C++ I setup a bunch of custom UStructs, and setup the defaults as shown in the example below:

 USTRUCT(BlueprintType)
 struct FExampleData
 {
     GENERATED_USTRUCT_BODY()
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite)    FString        Name;
     UPROPERTY(EditAnywhere, BlueprintReadWrite)    float        Value;
     
     FExampleData()
         : Name("NULL")
         , Value(-1.0F)
     {}
 };

In the editor, the Value equals 0.0

If I click the Reset to Default icon, the value remains 0.0

If I set a new non zero value, then click the Reset to Default icon, the value becomes 0.0

I can even manually set the value to -1.0, and if I then click the Reset to Default icon, the value becomes 0.0

Why does the value not reset to the desired -1.0 as set in C++, and how can I force the editor to do so?

Product Version: UE 4.17
Tags:
more ▼

asked Oct 22 '17 at 06:07 PM in Using UE4

avatar image

Erdrik
408 47 52 73

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

0 answers: sort voted first
Be the first one to answer this question
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