When a component inherited from code is transformed in any way with the viewport controls (arrows, rotation sphere, scale boxes) the editor will crash.
Using the value boxes to set the transform does not crash.
User able to workaround by setting component as root component.
1. Open UE4 Editor (any project)
2. Add code to project based on Actor
3. In the header file add the following:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Mesh, meta = (AllowPrivateAccess = "true")) class UStaticMeshComponent* Crash;
4. In the source file add the following:
Crash = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Stuff"));
5. Compile
6. In the editor go to Window->Developer Tools->Class Viewer
7. From the class viewer add an instance of the code class to the scene
8. In the World Outliner select the Instanced actor
9. In the details panel select the StaticMesh Instance
10. In the scene, use the arrows to try moving the mesh around
Result:
Editor crashes instantly when trying to move the mesh
Head over to the existing Questions & Answers thread and let us know what's up.