Author Topic: Need 2 or more Sprites to "snap" next to each other in a pixel perfect manner  (Read 3110 times)

Muffin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Hi Everyone,

Muffin here with a late night question on positioning UISprites next to each other. Here's the sitch:

I've got a Background image that's divided into 3 separate images: a left section, a middle section, and a right section. The middle section is supposed to stretch width-wise with the screen & the left and right sections must be placed on the sides of the middle section.

I've been able to get this to work by anchoring each of these images to the UIRoot but here's the problem: The images are slightly transparent. The left and right sections either overlap the middle section by <1 pixel or are too far away by <1 pixel. And can't have any 'seams' appear in between the sections of the image.

Is there a way to get images to 'snap' next to each other in a pixel perfect manner while the UIRoot is set to FixedSize?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
If you want to eliminate seams, you have to change the texture filtering to be Point rather than Bilinear.