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"

When I re-compile project code, blueprint variables with types I have defined in code disappear from their respective blueprints.

I have a custom struct type that I have defined in a c++ source file hooked up to my Unreal project. Occasionally when I re-compile my code through the Unreal Editor, all variables in my blueprints with that struct as their type will disappear form the blueprints they used to be in. If I try to re-create the variables, it says that their names are still in use by the disappeared variables regardless of them being gone now.

alt text

As you can see from this picture, the name is actually not in use anywhere. I can sometimes fix this by closing and re-opening the editor, but I just tried it for this occurrence of the issue (probably the tenth time) and it didn't fix it this time.

Product Version: UE 4.8
capture.png (38.7 kB)
more ▼

asked Aug 13 '15 at 08:54 PM in Bug Reports

avatar image

427 20 96 123

avatar image janimationd Aug 13 '15 at 08:57 PM

Also every time I try to compile an effected blueprint, I get an error saying "Error The variable AxonDevice declared in DCU_Game_Mode has an invalid type Structure". This is while I cannot see the variable, and that is the name of the variable that disappeared.

avatar image janimationd Aug 20 '15 at 07:54 PM

This seems to occur mostly when I make changes to my code that include one of the following:

  • Creating a new function that uses that variable type as a parameter

  • Editing an existing function's signature that has a parameter of that type

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

1 answer: sort voted first

Hi janimationd,

Thank you for pointing this out. Using your information, I was able to reproduce this issue, and I have submitted a report to have this investigated further (UE-20475). The only workaround I found was that in the specific instance where you have a Blueprint variable of a custom struct type and you are modifying a function in code that takes a parameter of that struct type, don't perform a Hot Reload. It isn't really an ideal workaround though, and I have not tested it extensively to make sure it works in any circumstance.


more ▼

answered Aug 27 '15 at 06:36 PM

avatar image janimationd Aug 27 '15 at 07:22 PM

Yeah, I've resorted to simply closing the editor and then compiling the code through visual studio, does this avoid a hot reload?

avatar image the.3null.4player. May 18 '17 at 03:38 AM

How do you go about compiling through visual studio I broke a reference and it defaulted to structure. It would be nice if the variable just remained visible.

(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