Ability to display selection outline for hidden in game objects

Hello!

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.

Just make sure you’re not in ‘game mode’ when editing? ( press G ).

Thanks!
I just checked and I’m not.

On the picture the left is editor mode and the right game mode.
The object is selected and no outline visible in editor mode.

1 Like

Bizarre, I’m gonna check it out ( not at a machine rn )…

Ok, I do have outlines on hidden objects… hmm…

I have a coin pickup blueprint, I made the coin hidden, and where sphere not. Editor mode

G: game mode ( in editor )

Well it seems related to this specific spawnpad static mesh.
You’re right it behaves as expected with a simple cube on my end as well.

I can try and use another mesh for my use case.
Thank you :slight_smile:

1 Like

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.

In case it helps someone, disabling Nanite support fixed the issue on our end.

1 Like

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