Search Unity

Question How would I make my image fit screen size and snap to the top middle?

Discussion in 'UGUI & TextMesh Pro' started by Thethispointer, Nov 12, 2020.

  1. Thethispointer

    Thethispointer

    Joined:
    Feb 11, 2018
    Posts:
    105
    Hello!

    Okay, I'll do my best to describe what I am doing. I use URP and a 2D renderer, someone told me I should be using the LWR, but... it works for everything I've used so far. I am doing a side scrolling space shooter. My artist produced a UI image of which I want to then make active. I have watched a handful of videos on Unity UI and I have read unity UI documentation. I know I am not using the other UI platforms.

    I am trying to get my UI image of which I attached to have the actual image snap to the top middle and be pretty large on screen. Right now it expands past my game view of 1920x1080, I don't really know how to wrap up my resolutions and whatnot for my targeted platform, 1080p WindowsSteam/XboxAppStore.

    I know I am probably lacking in my description of my issue. All the materials I've read and watched don't really help me with what I am doing and if I resize the UI goes in the middle of the game view, it doesn't make sense how it is scaling in my mind.

    I hope my post isn't that terrible! Thank you for anyone who reads this!
     

    Attached Files:

  2. Thethispointer

    Thethispointer

    Joined:
    Feb 11, 2018
    Posts:
    105
    another image
     

    Attached Files: