4.12 'Get Class Defaults' nodes reset and disconnect themselves

Currently any use of the Get Class Defaults node in 4.12 will break the next time the project is loaded.

Any time the project is loaded, all outputs get disconnected but the Get Class Defaults node still has its ‘Pin Options’ set.

Repro case:

  1. Pull down 4.11 Generic Shooter from the marketplace. There are compiler errors and broken behaviors in various blueprints.
  2. Open WB_HostGame in Content\GenericShooter\UI\MainMenu\Widgets\Menus. You will see a few compile errors near various Get Class Defaults nodes caused by Get Class Defaults outputs being disconnected.
  3. Inside WB_HostGame navigate to the UpdateOptionsVisibility function.
  4. You should see that the Get Class Defaults node is disconnected from all other nodes. Connect this node back to the graph by connecting Enable Multiplayer to the 2nd input pin on the And node and the Index input on the Select node, as this screenshot shows:

  1. Save and Compile the blueprint. (If you don’t fix the other compiler errors, the compiler will still fail, but this behavior persists even if you solve all compiler errors.)
  2. Restart the editor and reload the project.
  3. Navigate back to UpdateOptionsVisibility inside WB_HostGame and you’ll see that Get Class Defaults has been disconnected again.

HI Allar,

  • Does this occur in a clean, blank project with no additional content or is it limited to one project?
  • Are you seeing any errors about depreciated nodes or code?
  • Are there any other instances where this is occurring or is it specific to the gamemode class defaults node?

Hi Allar,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

just to add the interest in here, i get the same issue with a custom event. i have no idea how to replicate it but i got 2 actor classes with the same properties, except, some variables. only 1 of the actors keep disconnecting the event parameter everytime i reopen the project. as you can see, the event is totally independent from any built-in function and only disconnects from the overlapped actor. this is the exact same setup as my other actor and the other one never shows this behavior.
4.11.2 master branch

Hi jblaswu,

  • Does changing the variable name in one of the two actors seem to help?
  • Are the actors duplicates of one another or are they completely separate?
  • Is there a possibility that the variables are being used in a circular reference or circular dependency?
  • Does this occur in a clean, blank project with no additional content or is it limited to one project?

I’m getting the same issue with the Get Class Defaults Node in a Widget Blueprint as well. I am on version 4.12.2. If I get class defaults of any custom blueprint, all pins will be disconnected when I restart. If I get class defaults of a C++ class or built in class the node behaves normally.

EDIT: This bug seems to be limited to Widget Blueprints only. Other areas where I use the Get Class Defaults Node it behaves normally.

Hi everyone,

We were able to reproduce the class defaults error on another thread and is in our system as UE-31725.