Unreal Crash

Sorry, I didn’t get a notification you replied. The problem is that you didn’t declare the default constructor in the header file so Unreal is generating code to define it as well.

In the header you need to declare the constructor

class ATANK : ...
{
    ATANK(); // missing
};

It worked Thanks a lot

Thank you for your help. Also live coding takes time earlier it was fast .Is there any reason?And i am unable to delete a class from unreal i want to delete it since i made a new class for tank while i was experimenting.Now I want to delete the old one.

Depends how much slower and if it’s consistently slower. If it was just that one time then that would make sense as the a UnrealHeaderTool has to parse the header file and re-generate code (that will remove the definition of the default constructor from its generated code as you have declared it) and then re-compile it.

To delete the old class you need to delete the files and then re-compile.

Thank you for your help.

Hi Where can i learn how to make a flying pawn in unreal c++.

Hi when I open the tank blueprint class it says it derives from an invalid blueprint but the tank c++ class is already there.It could probably be because the class doesn’t exist until i do live coding how do i resolve this error.

Privacy & Terms