World Object Location to Mini Map Location

Hey everyone!

So this one has been bugging me for a few weeks now and I still can’t find the solution…

  • I have a simple map that has instances of a Blueprint (let’s call it ‘Location_BP’) placed in the world space which is basically used to reference a world space location.

  • I then have a Mini Map which has been setup with a Scene Capture 2D class, so it captures the actual world space scene every tick and displays that through a UMG Widget. It also follows the Character around the map, so I am not displaying the whole map all at once in the Mini Map, only the amount allowed by the dimensions of the Mini Map Widget and the height of the camera.

  • I would like to display an icon on the Mini Map over the location of each ‘Location_BP’.

I am having a huge amount of trouble trying to figure out how to get the real world location of the ‘Location_BP’, convert that to a 2D screen space location, and then adjust that location so that it sits over the ‘Location_BP’ displayed on the Mini Map.

  • Because the Mini Map Cam is capturing the world space scene, it would make sense to place the icon above the ‘Location_BP’ directly, but then how would I only display the icon on the Mini Map, and not in the world space?

  • Or is there a way to place another ‘layer’ over the map that can only be ‘seen’ by the Mini Map Cam, and could contain the icons?

  • Or is there a way to get the world space locations and divide them by the scale of the Mini Map (or something similar), and then clamp them in the Mini Map over the ‘Location_BP’?

I have tried all sorts of things and haven’t been able to figure this one out, so any advice/help/suggestions/ideas would be greatly appreciated.

Cheers,