Author Topic: Some small weird and unproductive default behaviors  (Read 4958 times)

armitage1982

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 15
    • View Profile
Some small weird and unproductive default behaviors
« on: May 15, 2013, 05:05:36 AM »
I searched on the forum but did not find any tips on this so I guess it is features request.

When creating pixel perfect UI, some default behaviors are quite annoying :
  • Would it be possible to keep the Filtering mode (as well as most others setup) of atlas textures when updating it ?
    I'm making a pixel perfect UI and each time I need to switch Filtering from Trilinear to Point.
  • Does any options exist inside Unity to force a perfect 'in-place' positioning of duplicated object ?
    Currently when you do this, the transform positions and scales get messed up with small floating numbers, and since I need it to be pixel perfect I can't help but to round all these back to original position (maniac behavior ?).
  • Would it be possible to reorganize the order of images inside an atlas ?
    For example the new Disabled Button feature require me to add a Disabled Sprite button to a previously created Atlas but now this sprite lies at the end of the Atlas and isn't grouped with the others button textures.
  • Finally, Would it be possible to give a second view style to the sprite selector ?
    Currently you need to directly select the image or know its name but it's getting hard to select the correct sprite in a very huge or tiny Pixel perfect GUI Atlas.
    Being able to see the sprite list with names next to thumbnails would be awesome.

This is all small things that in the end takes times and could be avoided, even if I'm sure it would require a lot of work and researches for you to fix this...
I hope you could give me your impressions on these requests.

Thanks for NGui, Best UI Asset I try so far !
« Last Edit: May 15, 2013, 11:55:55 AM by armitage1982 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Some small weird and unproductive default behaviors
« Reply #1 on: May 15, 2013, 12:05:01 PM »
Alt+Shift+P on a selected object makes it pixel perfect. Simply use it after CTRL+D.

Pixel perfect UI and point filtering don't have much in common. UI is pixel perfect if UIRoot is set to pixel perfect, and all sprites are at their native size.

You currently can't organize images inside an atlas, however you can delete all of them and re-add them in order you want them to be.

armitage1982

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 15
    • View Profile
Re: Some small weird and unproductive default behaviors
« Reply #2 on: May 16, 2013, 07:52:25 AM »
Pixel perfect UI and point filtering don't have much in common. UI is pixel perfect if UIRoot is set to pixel perfect, and all sprites are at their native size.

Indeed !
I didn't test while playing since the UIRoot 'Pixel Perfect' option is available, anyway I still need to set the atlas texture to Point Filtering or else it's blurry inside the editor and precise placement is harder this way. The smallest Sliceable texture possible (composed of 5 pixels in cross '+') also get smoothed on Scrolling Bar even at runtime.

Alt+Shift+P on a selected object makes it pixel perfect. Simply use it after CTRL+D.

It kinda works.
By the way I often get a UI Panel added to duplicated objects !!? I guess it's a bug but I can't precisely tell why it's happening.
I will comeback with reproducible steps as soon as I found what's wrong.
« Last Edit: May 16, 2013, 08:37:34 AM by armitage1982 »