Hello everybody!
The problem is as follows: if you simply attach a shape component to the character, then everything will be ok, when you open the character blueprint, a component will be visible, where you can select the type of collision (sphere, box or capsule).
If you create an inherited class from the shape component, then when attaching to the character, compilation occurs normally, but when you open the character in the editor, the engine crashes with an error:
Here is the content of the 49th line in the ShapeComponent implementation:
I copied the functions and removed all checks in the functions, the problem with opening the character disappeared, the component appeared, but there was no choice of the collision type.
I don’t know basic c ++, and have only been learning for a few months the pluses in the context of the engine. Please help, what should I add so that I can select the type of collision and can configure it? (with explanations please).