How to make Component selectable in viewport

I’m making a set of PrimitiveComponents, those are basically shapes (box, ellipsoid, capsule etc.). I want them to be both visible in the world and selectable by clicking on their viz in the viewport. Currently, I am drawing them with DrawDebugHelpers like DrawDebugSolidBox and others. But this way I can’t click on them and select its actor in viewport.
I have also tried to make Meshes for them since they are clickable in viewport but I am wondering if there’s a better way to select components viz?
My question is: what exactly makes mesh clickable? Can I do the same method for my Shapes without using Meshes?
Thanks!

Writing back, just to update my question. I solved the problem by using FPrimitiveSceneProxy and CreateSceneProxy method. Lines drawn with PDI are clickable in the editor. But remember to set proper CalcBounds!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.