# How to use viewmode unlit in a shipping build?

**URL:** <https://forums.unrealengine.com/t/how-to-use-viewmode-unlit-in-a-shipping-build/307143>\
**Category:** Rendering\
**Tags:** unlit, console-command, unreal-engine, Lighting, question\
**Created:** [February 16, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/how-to-use-viewmode-unlit-in-a-shipping-build/307143 "2015-02-16T20:30:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 11, 2020, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-use-viewmode-unlit-in-a-shipping-build/307143/5 "2020-07-11T20:41:40Z")

</div>

a) You can’t without some C++ hacking and even if oyu do that is partly functional and don’t change fact that shipping build has log system disabled. Main reason why console is disabled is to prevent end user to easilly mess with your game in unintentional way.

B) You can do this in C++ in GameVieport object that you can get from ()

> **[UWorld::GetGameViewport](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Engine/UWorld/GetGameViewport/)**
>
> Returns a reference to the game viewport displaying this world if one exists.

And set ViewMoideIndex varable:

> **[UGameViewportClient](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Engine/UGameViewportClient/)**
>
> A game viewport (\[FViewport\](API\\Runtime\\Engine\\FViewport)) is a high-level abstract interface for the platform specific rendering, audio, and input subsystems.

Here list of possible options:

> **[EViewModeIndex](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Engine/EViewModeIndex/)**
>
> Define view modes to get specific show flag settings (some on, some off and some are not altered) Don't change the order, the ID is serialized with the editor

Note that engine let you disable and enable invidual rendering features using show flags which you can contorol by setting values in EngineShowFlags varable

> **[FEngineShowFlags](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/FEngineShowFlags/)**
>
> ShowFlags are a set of bits (some are fixed in SHIPPING) that are stored in the ViewFamily.

You can not do this with blueprints, maybe there way to do this via config but i’m not sure. But you can make bluerpints nodes in C++ that let you do things that you want

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-use-viewmode-unlit-in-a-shipping-build/307143)._
