Can I use the different viewmodes in-game?

When testing content with different view modes, e.g. ‘Detal Lighting’ and ‘Reflections Only’ I noticed they could be useful effects for artistic reasons. Is there any way to render a scene with these processes in-game?

Hey integration -

Yes, you should be able to use the following console commands:

Viewmode Lit_DetailLighting (Detail Lighting)

Viewmode ReflectionOverride (Reflections)

Thank You

Eric Ketchum

Eric,

I’ve tried running a console command at the beginning of some levels we are testing, Viewmode Unlit seems to work fine in editor, but when packaging as development, it doesn’t seem to work. We’d rather not switch around all of our materials to unlit and want to figure out a way to get this console command working as its the fastest way to test these levels without having to setup lighting. Other commands seem to work, I’ve made a button to lower the settings using console commands, and those all seem to work in the packaged game as well.

Any ideas?

Thanks,

Hi esquire -

Where (in what Blueprint) are you executing the console command? It should package if you have that execute console command in the blueprints.

Let me know -

Eric Ketchum

Whoops, clipped it off the screenshot. This is in the level blueprint. What’s strange, is I can run a few console commands in the packaged game. Open “map name” works to switch level, and like mentioned, a ui button that sets settings to low. But none of the other commands work.

In the game, we are using the Open Level node to load these levels, could that have something to do with it?

It could be that you have to call the Viewmode unlit on each open map call. Try that and let me know if you get any different results when packaging.

would I just tuck it into the Open Level options on the node? Viewmode Unlit, or -viewmode unlit?

Hi -

I am not entirely sure which one to use, I have confirmed though that using the Open Level command will reset all parameters set before that level opened. I would try both methods and if those do not work. I would also try to call the actual Execute Console Command node in the new level’s Level Blueprint on Event Begin Play.

Thank You

Eric Ketchum

Hey guys, just wondering if this was ever resolved as I’ve hit the same issue. I can trigger the detail lighting change through blueprint while in editor, but the built game won’t work.