What's the difference between HiddenInGame, Visibility And RenderInMainPass?

Hello everyone,

I want my mesh to not drawn in the scene. In the other words, no draw call. Which one should I use? And what’s the difference between them?

Use SetVisibility or ToggleVisibility.

Hidden in game - means object visible in editor, but not in game.

Thank you for your answer.

So basically, changing visibility will be enough for no draw call; and HiddenInGame also does the same thing in terms of draw calls?

Yes. But usually HiddenInGame used in case of some actor components, and actors that must be visible in editor, but not in game. Like BlockingVolumes, Triggers or so.

If you need to toggle visibility in runtime, use SetVisibility or ToggleVisibility functions.

Thank you.