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
Why does the REMOVE method of map container remove elements have memory leaks?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How to delete some elements correctly when deleting an array loop?
How does TextureRenderTarget2D get TArray<uint8> type data?
How do I set a material as a post-processing material?
Head over to the existing Questions & Answers thread and let us know what's up.