Unreal Engine crashing

So i got to the lecture creating Child c++ classes and when i entered the ATank(); constructor in the Tank.h file UE crashed and whenever i want to open it it shows this error:



I’ve tried to remove ATank(); from Tank.h but it still keeps crashing!
Can somebody pls help?

That would likely be due to not removing the SpringArm and Camera from the blueprint first. Deleting things from code isn’t enough, Unreal is loading the compiled code; so if you didn’t compile after making your changes then it’ll still be running what you had before.

To compile from VS Code use the build task
Ctrl + Shift + B > ProjectNameEditor Platform Development Build.
Where ProjectName is the name of your project and Platform is the platform you’re targeting e.g. Win64

I’ve compiled from VS Code but UE still gives the same error…

You would need to remove the components you added in C++ first.

I’ve redid everything and compiled from VS Code this time because what you said was not working but now everything is fine and UE is not crashing!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms