Description

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.

Steps to Reproduce

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

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Cannot Reproduce
ComponentTools
Affects Versions4.7.24.8
Target Fix4.8
CreatedMar 6, 2015
ResolvedMar 23, 2015
UpdatedApr 27, 2018