USTRUCT in Gameplay Module crashes Editor on Startup
I want to create a (gameplay) module containing a number of generated USTRUCTs which later can and will be accessed via the Editor in Blueprints. Creating those USTRUCTs in the primary module works as expected, but as soon as I move them to another module, the editor crashes on startup (the module's dll builds successfully though).
When starting the Editor via VS, it breaks with the following error message:
The interesting thing is, if I convert everything to a proper UCLASS (e.g. inheriting from AActor), the editor starts up just fine. I can also create a Blueprint based on that UCLASS (appriopriatly defined in the C++ code, of course). I am not sure whether it is an issue in my module setup or a bug in the engine.
Thanks in advance!
The USTRUCT in question
Module Setup (Reproduction)
What I have done to create the module Communication based on (the documented version seems rather old and confusing):
Copied the ModuleTest.Build.cs, ModuleTest.h and ModuleTest.cpp to Communication/ and renamed all occurences of ModuleTest to Communication (filenames and filecontent).
Content of Communication.cpp:
I also changed the following files:
asked Oct 20 '14 at 01:29 PM in C++ Programming
Module must have at least one UClass so package name can be registered in UE's object system. p.s. if you look inside of AssetEditorMessages.h then you will see dummy class to register package name.
Solution : You should make dummy UClass in the module then you will be fine.
answered Oct 23 '14 at 09:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here