Author Topic: Resize UI based on aspect ratio and is there a method to make global changes ?  (Read 4137 times)

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
Hello,

1. I've seen this discussion brought up before. Tried the script attached to UIRoot, tried setting the UIRoot to static, tried with UIStretch, nothing worked.
How can I resize the UI based on the aspect ratio so that it always looks good ?
When I switch from 16:9 to 5:4 let's say, icons start to overlap etc..

2. Is there a way to change the button sound for all the buttons in the project, or at least a scene at the same time ?
Or I have to go through each button and change it manually ?

Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
1. "so that it always looks good"?

Going from 16:9 you have two choices: either you skew the shit out of your UI, warping it so that it "fills" the UI even if the aspect ratio is different... (and this will look ridiculously ugly by the way)... or make your UI modular so that you are taking advantage of multiple anchor points (watch the 'catering to different screen sizes' video on the ngui docs page).

2. Yeah, replace your sound file in explorer. :P

primus88

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 50
    • View Profile
1. Thank you, I will take a look. It is sad, because I really like the UI so it would suck to ruin it by applying a 'skew the shit out of it'
2. Lol, that is a great idea :)))

Thank you