Author Topic: How to show image's sliced properly?  (Read 3460 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
How to show image's sliced properly?
« on: March 11, 2017, 08:38:17 AM »
Compare these 2 pictures.
At unity gui's Image, just register image is easy and shows with no problem.

But why ngui does now show image's sliced? And why it need to make atlas? So unconvenient.
 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to show image's sliced properly?
« Reply #1 on: March 15, 2017, 01:14:43 PM »
You don't need to make it an atlas. You can use UI2DSprite (ALT+SHIFT+D) to draw Unity sprites directly, or UITexture (ALT+SHIFT+T) to draw a raw texture. Slicing information can be specified right on the sprite if you choose the "Sliced" type.