Author Topic: NGUI & 2DToolkit Sprite Collections  (Read 5856 times)

rxmarcus

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 62
    • View Profile
NGUI & 2DToolkit Sprite Collections
« on: November 19, 2014, 12:16:07 AM »
From my understanding, at the moment you cannot use sprites created via 2D Toolkits sprite collections inside NGUI. (Is this correct?)

If this is true, is there any intention to make this happen in the future?
I am creating a story book app and LOVE being able to use NGUI's Scroll View widget but also will have multiple resolutions of all the story artwork and as such was wanting to use 2D Toolkit sprite collections to handle that side of things.

Any suggestions if I'm just thinking about this all wrong in the first place?

dilshod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 14
    • View Profile
Re: NGUI & 2DToolkit Sprite Collections
« Reply #1 on: November 19, 2014, 05:35:05 AM »
I am doing same thing in my current project. I wrote a script which renders one or more tk2d sprites as one ngui object. You can find it in the attachment. I made it to be able programmatically create sprites and change shader at runtime.
Sprite type and Flip does not work.

rxmarcus

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 62
    • View Profile
Re: NGUI & 2DToolkit Sprite Collections
« Reply #2 on: November 19, 2014, 03:10:29 PM »
Wow, thank you very much. I'll give this a try later today.

Tork

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: NGUI & 2DToolkit Sprite Collections
« Reply #3 on: April 22, 2015, 12:03:10 AM »
This is simply awesome!! THANK YOU!!