Hello Guest

Author Topic: Are there any issues with NGUI + 2D Toolkit together?  (Read 5989 times)

storm33229

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Are there any issues with NGUI + 2D Toolkit together?
« on: May 02, 2013, 02:57:42 pm »
Before I start down this road, I want to make sure there aren't any issues, so... Are there any issues with NGUI + 2D Toolkit together? I am already accustomed to NGUI for... GUI... but I want to keep using 2D Toolkit for all of my non-GUI game elements. Will this be a problem?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Are there any issues with NGUI + 2D Toolkit together?
« Reply #1 on: May 02, 2013, 03:00:36 pm »
You can't mix sprites - i.e. use tk2dSprites in NGUI or vice-versa, but apart from that there shouldn't be any issues.

storm33229

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Are there any issues with NGUI + 2D Toolkit together?
« Reply #2 on: May 02, 2013, 06:53:51 pm »
Perfect. Thanks :)

CoderBear

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Are there any issues with NGUI + 2D Toolkit together?
« Reply #3 on: May 02, 2013, 11:09:41 pm »
Just make sure the NGUI camera size matches the camera size for the toolkit  other wise there will be a lot of going back and for between the two.

eg.

if tk2dcamera size = 368 (1/2 736 useable screen pixels on a Nexus 7)
then camera(NGUI) size = 368

or

if camera(NGUI) size = 1(1/2 736 useable screen pixels on a Nexus 7)
then tk2dcamera  size = 1