Hello,
I’m trying to make a minimap widget and i need to simply set and get the position of an image inside a Widget Blueprint class.
I’ve read that first the widget should be cast to CanvasPanelSlot but if I try to do that, I get a warning saying “Canvas Panel Slot does not inherit from ‘Image’, Cast would always fail”.
So, any idea on how to do that? The situation is the following:
The little white image in the bottom-left corner is the ‘imgMinimap’ image and the blue square inside it is the ‘imgFocus’ image.
I need to continuously update the position of the square that represents the view of the camera, just like in an RTS game.
Below is a reference image of the AoE minimap, just to make it clear on what I’m trying to achieve.