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?
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?
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();
.
This doesn’t seem to work for me though, I have a feeling the viewport is loosing focus when I interact with a FModeToolkit. Any further ideas?