Hi. Maybe someone can help me.
I need to handle mouse clicks and draw in the actor’s viewport. Ideally, this should be done using the on/off button on the top panel.
My task is to select triangles or vertices of a StaticMeshComponent with the mouse and store this information in the default actor object.
I created an editor module and tried:
- FComponentVisualizer - it draws in viewport, but everything disappears immediately after pressing compile button and in some other cases. This is not what I want;
- Tried FEdMode. It catches clicks in the viewport, but at a level, and I need an actor;
- FEditorViewportClient - nothing worked here at all, maybe I don’t know anything.
Is there a suitable class that can be inherited, registered, etc. Or maybe even a video or repository with an example?