0
\$\begingroup\$

The viewport of my custom EdMode does not update while I drag a spinbox (which is in a custom FModeToolkit). In fact, MyCustomEdMode::Render() is not even called (while the spinbox).

How can I refresh the viewport while dragging?

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

The MyCustomEdMode::::DrawHUD(FEditorViewportClient* ViewportClient, FViewport* Viewport, const FSceneView* View, FCanvas* Canvas) function gives access to the FEditorViewportClient which must be invalidated.

In the spinbox onValueChange callback there must be ViewportClient->Invalidate();.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .