I have a very simple setup which is returning a very strange error.
I have an Overlay inside a canvas:
And I make the Overlay Widget a variable:
I followed the instructions in this thread to obtain the panning of an image inside a canvas panel, and it worked. Link: https://answers.unrealengine.com/questions/815202/how-to-scalezoom-a-widget-with-blueprints.html
Now I’d like to turn this setup into a more complex structure: I’m trying to pan around an overlay, so I can add child widgets to it, for example buttons.
In the “OnMouseMove” overridden function I have this:
As you can see I’m trying to Set the RenderTranslation of the Overlay widget.
This works perfectly when the Widget is an Image.
When I use the Overlay I get this error:
It clearly shows that there is nothing stored in the Overlay variable.
How is this possible?