There’ve been a number of threads floating around talking about this, will this be fixed sometime soon?
https://www.reddit.com/r/unrealengine/comments/z2njgh/set_position_in_viewport_in_ue51_doesnt_work/
There’ve been a number of threads floating around talking about this, will this be fixed sometime soon?
https://www.reddit.com/r/unrealengine/comments/z2njgh/set_position_in_viewport_in_ue51_doesnt_work/
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.
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.
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.