Author Topic: NGUI game object mesh/vertices  (Read 3822 times)

nxnyo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI game object mesh/vertices
« on: January 08, 2014, 04:46:42 PM »
I'm looking to create a slanted effect (shear) for an NGUI label. Is it possible to get the mesh/vertices associated with an individual NGUI object (i.e., label) so that I could possibly apply matrix operations? Pointing me in any helpful direction would be also be much appreciated. Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI game object mesh/vertices
« Reply #1 on: January 08, 2014, 09:58:25 PM »
No, but you can create your own widget type derived from either UIWidget, UISprite, or UITexture, and change its OnFill function if you so desire.

However... it's a hell of a lot easier to simply have a sheared-looking source texture instead.