# SetPositionInViewport node broken in UE5.1

**URL:** <https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, question\
**Created:** [December 20, 2022, 4:26am UTC](https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258 "2022-12-20T04:26:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sairenz94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sairenz94](https://forums.unrealengine.com/u/Sairenz94)\
**Post date:** [December 20, 2022, 4:26am UTC](https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258/1 "2022-12-20T04:26:03Z")

</div>

There’ve been a number of threads floating around talking about this, will this be fixed sometime soon?

> [@set position in viewport widget not working](https://forums.unrealengine.com/t/set-position-in-viewport-widget-not-working/692335):
>
> Hi devs i have a issue where i am trying to use (set position in viewport) node but is not working i have test on unreal engine 5.0 and the same pice of code works fine here is the example

[https://www.reddit.com/r/unrealengine/comments/z2njgh/set\_position\_in\_viewport\_in\_ue51\_doesnt\_work/](https://www.reddit.com/r/unrealengine/comments/z2njgh/set_position_in_viewport_in_ue51_doesnt_work/)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [December 20, 2022, 5:29am UTC](https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258/2 "2022-12-20T05:29:41Z")

</div>

Hey there @Sairenz94! So some of the times I’ve been seeing this it’s been the GameInstance not having a proper reference to it’s subsystem because it overrides the Init and OnStart functions.

> [@Add to viewport does not work](https://forums.unrealengine.com/t/add-to-viewport-does-not-work/717453/15):
>
> I’ve tracked down the problem for myself and I assume it’s the same for you guys. My GameInstance class in CPP had overridden the Init and OnStart functions, and hadn’t called Super::Init(), etc. Make sure you’re calling the parent inits!

---

<div class="post-metadata">

**Author:** ![Sairenz94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sairenz94](https://forums.unrealengine.com/u/Sairenz94)\
**Post date:** [December 20, 2022, 6:25am UTC](https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258/3 "2022-12-20T06:25:45Z")

</div>

Hey @SupportiveEntity thanks for your reply!

I think the thread you linked is slightly different to the issue I’ve posted about; I’m having issues with the `SetPositionInViewport` node rather than the `AddToViewport` node.

I’ve also just checked and my `GameInstance` class in C++ is in fact calling `Super` for `Init` (didn’t override `OnStart`).

Similar to the thread you posted, though, my game was working fine in 5.0, and this issue only started appearing in 5.1. My widgets get added to the viewport without any issues though, they just aren’t in the right positions.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [December 20, 2022, 6:31am UTC](https://forums.unrealengine.com/t/setpositioninviewport-node-broken-in-ue5-1/732258/4 "2022-12-20T06:31:12Z")

</div>

Ahhh yes, sorry about that. 2am brain happens from time to time.

Anyways, yes I agree I’ve seen that specific issue quite often as well, I did have a post that I worked with to find an answer but I’ve got to dig for that, if I remember correctly a workaround was found that wasn’t just using the other positional node. I’ll take a quick read through my history to see if I can find that!

Edit: Turns out it is the same workaround as the post you had mentioned.
