# Widget not working in custom FEditorViewportClient

**URL:** <https://forums.unrealengine.com/t/widget-not-working-in-custom-feditorviewportclient/363387>\
**Category:** UI\
**Tags:** unreal-engine, gizmo, editor, Widget, UE4, question, CPP\
**Created:** [July 8, 2016, 4:09pm UTC](https://forums.unrealengine.com/t/widget-not-working-in-custom-feditorviewportclient/363387 "2016-07-08T16:09:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_08c2fdfc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08c2fdfc](https://forums.unrealengine.com/u/anonymous_user_08c2fdfc)\
**Post date:** [July 8, 2016, 4:09pm UTC](https://forums.unrealengine.com/t/widget-not-working-in-custom-feditorviewportclient/363387/1 "2016-07-08T16:09:45Z")

</div>

I performed the following steps to create a texture UV editor:

1. created a custom `FEditorViewportClient`
2. set an orthographic camera: `FEditorViewportClient::SetViewportType(ELevelViewportType.LVT_OrthoXY)`
3. created an actor in the corresponding world and selected it
4. set the widget mode to translate: `SetWidgetMode(EJavascriptWidgetMode.WM_Translate)`

The problem is that the widget is rendered, but it does not move when I drag it. Why is the widget not responding?

---

<div class="post-metadata">

**Author:** ![suren4crazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@suren4crazy](https://forums.unrealengine.com/u/suren4crazy)\
**Post date:** [November 8, 2022, 1:11pm UTC](https://forums.unrealengine.com/t/widget-not-working-in-custom-feditorviewportclient/363387/2 "2022-11-08T13:11:10Z")

</div>

could you please tell me , how you created custom FEditorViewportClient ?
