UE4 error: Serial loading Unknown structure

Background: When compiling the UE4 C++ project, errors such as Unknown structure appear;

After querying, I found that: After the structure defined in C++ is exposed to the blueprint, a new container is recreated, which contains many structures. The data type of this container is defined as: AllZMQDataPool

Define a new variable in Gameinstance, and the variable type is AllZMQDataPool; create a method to quickly obtain variables in common func.

After the compilation is complete, the above problem occurs when packaging.

Without further ado, the solution is as follows:

1. Directly modify the name of the structure container; after modifying the name, recompile from the C++ project, then reopen the project, package it, and solve it;

2. If there are only a few sporadic errors and you don’t want to change the name, you can select Refresh all nodes through the “File” option in the blueprint of the error, and then compile again, repackage, and solve it;

Basically, the above two methods are easy to use by personal testing.

Guess you like

Origin blog.csdn.net/gaofei7439/article/details/122426744