Adding Instances via GameMode Results in them not being Visible in Game

Hello, I have a question about Instances and the GameMode.

I am using the GameMode as place to hold singleton objects. I have added a default Hierarchical Instanced Static Mesh component to the GameMode. However, when I try to add an instance using that component, the added instance is not visible in game. The instance collision still shows up and works as expected. If I enable “show COLLISION” using the console input box, the mesh shows up as expected.

Is this behavior expected? Would greatly appreciate any insight why this occurs when using the GameMode. Thanks!

GIF 9-2-2024 10-51-51 AM

1 Like

I ran into this same problem, and Claude managed to figure it out for me.

AGameModeBase inherits from AInfo, which is meant to be an invisible data object. It hides itself, and hides many properties from the Details panel including the “is hidden” checkbox. As a result, it’s very hard to even notice at a glance that Game Modes are hiding themselves from rendering! But they are, and it’s intentional.