- Home /
UI in world space, but not resizable with zoom
Hello, if someone can helpme with this. I have a lots of solar systems (2D game) and they have a canvas in world space mode (a raw image for example as child indicating where they are). When i zooms (zoom mean in orthografic -> size / in perspective -> position.z) this canvas (and his ui childs) becomes smaller. How can i block in "screen space" the size of the canvas? Another way maybe? This image from above is from "homeworld" game. When the player zoom out this simbols appears in spaceship location but keep her size:
Answer by Arshia001 · Jul 24, 2016 at 09:08 AM
You'd have to make the UI screen-space. Then' you'd find where to draw the images using:
var ScreenPosition = Camera.main.WorldToScreenPoint(transform.position)
What this does is it converts a point in world space to screen space, based on your camera's projection. You can then draw the sprites at the resulting screen point.
Your answer
![](https://koobas.hobune.stream/wayback/20220612085413im_/https://answers.unity.com/themes/thub/images/avi.jpg)