# Enabling UMG Preview Mode

**URL:** <https://forums.unrealengine.com/t/enabling-umg-preview-mode/2122651>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor, Widget, UMG\
**Created:** [November 14, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/enabling-umg-preview-mode/2122651 "2024-11-14T15:36:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rayblast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rayblast](https://forums.unrealengine.com/u/Rayblast)\
**Post date:** [November 14, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/enabling-umg-preview-mode/2122651/1 "2024-11-14T15:36:26Z")

</div>

For enabling Preview Mode in widgets you need to use the following command CVar: **UMG.EnablePreviewMode 1**

This will enable the Preview button in the widget editor:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/e/39e4fee41534203db363aa3468bf302f229dabd0.png)

If you had a widget opened, you will need to close it and open it again.

Sadly you will need to call the command every time you open the editor.  
I tried modifying the project .ini files to call the cvar when opening it, but couldn’t do it.  
Maybe someone more knowledgeable than me can find a solution.  
This is the location of the file that contains the cvar:  
_…\Engine\Source\Editor\UMGEditor\Private\BlueprintModes\WidgetBlueprintApplicationModes.cpp_

For the folks like me that were trying to make it work with Viewmodels as shown in [this video](https://dev.epicgames.com/community/learning/talks-and-demos/pw3Y/unreal-engine-umg-viewmodels-building-more-robust-and-testable-uis-using-mvvm-unreal-fest-2023) (10:30):

1. Set your view model **Creation Type** to **Create Instance**.
2. Go to **Class Settings** and enable **Can Call Initialized Without Player Context**.
3. (Optional) Inside **Preview Mode** go to **Window-\>Viewmodels** to see the viewmodel instantiated.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/1/2c1e261fd6a16176a3b8b671e03dfeaeb45fea03.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/d/afdb4be0dbab50e4929137f239121ca92dbec976.png)

---

<div class="post-metadata">

**Author:** ![as3mbus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@as3mbus](https://forums.unrealengine.com/u/as3mbus)\
**Post date:** [February 3, 2026, 7:17am UTC](https://forums.unrealengine.com/t/enabling-umg-preview-mode/2122651/2 "2026-02-03T07:17:08Z")

</div>

i don’t know why i havent found this sooner.

thanks to blueprint preview asset i ended up here.

but i’m unable to find

> [@Rayblast](#):
>
> (Optional) Inside **Preview Mode** go to **Window-\>Viewmodels** to see the viewmodel instantiated.

is this removed in later unreal version ?

i’m using unreal 5.5
