Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Draw "Blip" on Minimap?

$
0
0
I'm looking at changing my minimap implementation because I don't like it at all, I'm probably going to move to a static image as our maps are not big enough to warrant a rendertexture or anything like that. The only thing I can't quite work out is, what would be the best way to draw unit locations over the top of that. I figured I'd simply take the world co-ordinates of the objects, translate them to the correct position relative to the image (should be some fairly basic math for that) but how then could I go about implementing them on the screen? Would it be a case of me having to get the screen position of the actual minimap and then drawing them relative to that position through on OnGUI call? Or is there a better way to do this?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>