Why Editor does not start because of C++ code

Hi, after adding an ActorComponent written in C++ to ThirdPersonCharacter and closing the project, it stops opening.
This is Component:
image

Source Code:
.h:


.cpp(I think the problem is ConstructorHelpers):

CraftStructs.h(using in CraftComponent.cpp):

PLEASE HELP, THANKS.

You can try using LoadObject instead of Constructor Helpers.
But it’s possible LoadObject may not work in the constructor. If that’s the case, you can move it to the virtual InitializeComponent function instead.

1 Like