Hiding component in game

Hi, I have a UBoxComponent that I would like to be visible in the editor, but not in the game… but I can’t figure out how to do it.

Neither of the following appear to have any effect

EntranceBox->bHiddenInGame = true;
EntranceBox->bVisible = false;

I use the UBoxComponent like a trigger so I can’t really change the scale to zero.

Do you have a blueprint of your class? If so, go to the component in the actor’s bp and check “Hidden In Game”.