When I’m calling SetConstraintMode(EDOFMode::XZPlane); in an actor’s constructor, the editor crashes with EXCEPTION_ACCESS_VIOLATION. The editor always says it crashes on line 20, which is when I set the root component to be the Sprite, however, commenting out SetConstraintMode stops the editor from crashing. My code is as follows:
edit: It stopped the editor crashing until BeginPlay() was called. The actor that is using SetConstraintMode() is being spawned so now it crashes the editor when the actor is spawned… I’m just going to make a blueprint from the c++ class and edit the constraints from there I think.