Author Topic: Images position, scale on resolution change  (Read 1497 times)

matis

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Images position, scale on resolution change
« on: January 28, 2014, 05:38:59 AM »
Hi,
Iam working on point and click adventure game ,using NGUI for all my images. I want to have some images over my background but dont know how to keep them on place and scale them when resolution is change. My background have UIStretch script on it and it is scaling very well when I change resolution but my other images are off position and scale. Hope someone is understand me:) Any advices? Thanks a lot

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Images position, scale on resolution change
« Reply #1 on: January 28, 2014, 11:24:38 AM »
Change UIRoot to Fixed Size, and everything will stay the same size. If the aspect ratio changes, you will see more or less on the left and right hand side though. No way around it unless you skew the image (which is ugly), or use anchors on certain elements (which works for UI, but not suitable for a game).