I have a blueprint object with a static mesh flagged as Hidden In Game.
The goal is to have something visible in the editor for level designers but not when the game runs, for objects such as spawners.
Unfortunately the yellow/orange editor viewport selection outline is not displayed around these objects which is annoying when trying to visualize what is currently selected or not.
It seems related to the Hidden In Game option as the outline is well shown when not using it.
Is it possible to still have the outline for such objects?
I tried looking for a relevant option in Editor Preferences without success so far.
For cases like this: something visible in editor, but invisible in game, but can collide and highlight, we use an “Invisible” material applied at BeginPlay() or whenever the thing turns invisible.
It is translucent, unlit, and most importantly, has custom depth writes checked.