Author Topic: How to define a sliced sprite in Atlas in NGUI 3.5.5?  (Read 4408 times)

nikhil

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
How to define a sliced sprite in Atlas in NGUI 3.5.5?
« on: March 25, 2014, 01:19:02 AM »
Hi,

I just updated NGUI to 3.5.5 and I was trying to add a sliced sprite to an Atlas and I see that the functionality to define the sliced sprite no more exist. I remember there was an option to define the bounds of the sliced sprite when you select the Atlas, but the option seems to be disappeared. Nothing is mentioned in the release notes as well.

Please help.

Thanks.

Nikhil
« Last Edit: March 25, 2014, 01:54:08 AM by nikhil »

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: How to define a sliced sprite in Atlas in NGUI 3.5.5?
« Reply #1 on: March 25, 2014, 08:14:45 AM »
Add your sprite to the scene and click on the edit button ;)
Moreover if you want to set it as a sliced sprite, you have to do it on the UISprite object.

nikhil

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: How to define a sliced sprite in Atlas in NGUI 3.5.5?
« Reply #2 on: March 25, 2014, 11:49:57 PM »
Thanks for the help Pedra.  :)

So now its a 2 way process:
1. Set the borders in the Atlas
2. Set the Sprite Type to Sliced and check Fill Center

 :D