The mesh drawn by the scene proxy disappears while dragging it.

The mesh drawn by the scene proxy disappears while dragging it.

Situation:

  • I customized CreateSceneProxy in MYMeshComponent (which inherits from UMeshComponent) to render a mesh from C++.
  • In the proxy class (inheriting from FPrimitiveSceneProxy and overriding GetDynamicMeshElements) I use FDynamicMeshBuilder’s GetMesh to draw the geometry.
  • I attached MYMeshComponent as a default subobject to an actor that inherits from CineCamera using SetupAttachment.

Issue:

  • When I drag the CineCamera with the attached mesh, the mesh vanishes during the drag.

I did not see this flickering when I used UProceduralMeshComponent to display the same mesh. Why does this happen?

Hello,

Thank you for reaching out.

I’ve been assigned this issue, and we will be looking into the flickering when your component is dragged for you.

Can you please send us a minimal test project that demonstrates this, and include screenshots or video of the issue?

The guide for test projects:

[Content removed]

Hello,

Thank you for your reply.

I resolved it by increasing the number of vertices passed to GetDynamicMeshElements().

If I run into any other problems I can’t solve, I’d appreciate your help again. Thanks in advance!

Hello,

Thank you for sharing your solution.

Can we close your case? You can always re-open it if you need additional assistance with the same issue.

Hello,

Of course. Please close this case! Thank you for your help.