# How can I change Viewmode in game?

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838>\
**Category:** Platform & Builds\
**Tags:** unlit, unreal-engine, packaging-projects, question\
**Created:** [June 13, 2021, 11:50am UTC](https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838 "2021-06-13T11:50:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yeyu/32/88715_2.png) [@yeyu](https://forums.unrealengine.com/u/yeyu)\
**Post date:** [June 13, 2021, 11:50am UTC](https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838/1 "2021-06-13T11:50:30Z")

</div>

How should I switch unlit mode in a packaged game?  
In the ue4 editor, I can press F2 to switch to unlit mode, but not in the packaged game.  
How can I do it?

---

<div class="post-metadata">

**Author:** ![engelmanna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@engelmanna](https://forums.unrealengine.com/u/engelmanna)\
**Post date:** [June 15, 2021, 3:05am UTC](https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838/2 "2021-06-15T03:05:24Z")

</div>

You can get that effect by using a post process volume material.

1. Create a new material
2. In the Details pane under “Material”, set the Domain to “Post Process”
3. In the material, connect a “Scene Texture” node to the emissive color slot of the material
4. Set the “Scene Texture ID” parameter of the SceneTexture node to “Diffuse Color”
5. Add the newly created post process material as a material in your level’s post process volume.

You can use blueprints to set how much the post process material affects the scene, so you can toggle between lit and unlit at runtime.

---

<div class="post-metadata">

**Author:** ![yeyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yeyu/32/88715_2.png) [@yeyu](https://forums.unrealengine.com/u/yeyu)\
**Post date:** [June 15, 2021, 11:36am UTC](https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838/3 "2021-06-15T11:36:20Z")

</div>

ERROR…

---

<div class="post-metadata">

**Author:** ![engelmanna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@engelmanna](https://forums.unrealengine.com/u/engelmanna)\
**Post date:** [June 15, 2021, 3:19pm UTC](https://forums.unrealengine.com/t/how-can-i-change-viewmode-in-game/484838/4 "2021-06-15T15:19:45Z")

</div>

What error are you getting? There are a few caveats:

- It won’t work if you are using forward rendering
- I won’t work for things like volumetrics, or the UE4 SkySphere blueprint
- If you want to match the colors, you’ll have to gamma correct the SceneTexture. You can do so by plugging the SceneTexture node into the Base Input of a Power Node, setting the expononent to .4545, then plugging the output of the power node to the material’s emissive color.

 ![341533-materialandpostprocessvolumesetup.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/0/c203d36742b3a03c539eddfe2545e7b49f5a34f1.jpeg)
