Author Topic: TiledSprite problems  (Read 4380 times)

itszander

  • Guest
TiledSprite problems
« on: September 20, 2012, 04:09:08 PM »
Hi all, I'm deep into nGUI and really love it. But, I have a small problem involving tilingsprites.

Long story short, I am using a texture atlas with an HD/SD switch.  Inside this atlas I am using a number of textures to make a map background.  I'm using tiledsprite to accomplish this but I see the outline/edges of the tile and it's not tiling perfectly. 

I read a little bit online and there was mention of an inner_rect that could give me some padding but I can't find this. 

See the attached images.

Please help!

-zander

PhilipC

  • Guest
Re: TiledSprite problems
« Reply #1 on: September 20, 2012, 04:29:18 PM »
What is the border for those sprites set to?

itszander

  • Guest
Re: TiledSprite problems
« Reply #2 on: September 20, 2012, 05:36:50 PM »
Geez, I don't know. How do I set a border? :)

PhilipC

  • Guest
Re: TiledSprite problems
« Reply #3 on: September 20, 2012, 06:04:11 PM »
If you select the atlas prefab and then select the sprite there are different setting you have. The size and position of the sprite on the atlas, the boarder and the padding.

itszander

  • Guest
Re: TiledSprite problems
« Reply #4 on: September 21, 2012, 07:52:48 AM »
hi, I'm not able to find this anywhere.

I have my atlas selected in atlas maker, then I select the texture in the project window and I dont see any options.

When no textures are selected I see the message in atlas maker letting me know that selecting the texture in project window gives more options. I just dont know what to click.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TiledSprite problems
« Reply #5 on: September 21, 2012, 08:25:56 AM »
Select the atlas, not the atlas maker. The atlas is a prefab.

itszander

  • Guest
Re: TiledSprite problems
« Reply #6 on: September 21, 2012, 08:33:35 AM »
YOU ROCK!

(it works!!)