Background: when compiling UE4 C + + project, there are unknown structure and other errors;
After the query, it is found that after the structure defined in C + + is exposed to the blueprint, a new container is re created, including many structures. The data type of this container is defined as: allzmqdatapool
Define a new variable in gameinstance. The variable type is allzmqdatapool; Create a method to quickly get variables in common func.
The above problem occurs when packaging after compilation.
Less nonsense, 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 and solve it;
2. If there are only a few sporadic errors and you don’t want to change your name, you can select refresh all nodes in the blueprint of the error report through the “file” option, and then compile again, repackage and solve it;
Basically, the above two methods are easy to use.