Author Topic: Unity Box Collider or NGUI Attach Collider  (Read 7612 times)

ProjectOne

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Unity Box Collider or NGUI Attach Collider
« on: February 04, 2013, 12:10:01 PM »
Hi,
Using NGUI first time on a project... question if you don't mind
 
using colliders on NGUi Sprites for pickups-sprites and for NGUI sprites that give you score when touching them... Should I use a normal Unity Box collider or use the Attach Collider from NGUI menu.

Not sure what the difference is supposed to be between the Unity Box Collider and the NGUI colliders... I thought the NGUI collider was specifically for use with Touch/Mobile interaction?

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: Unity Box Collider or NGUI Attach Collider
« Reply #1 on: February 04, 2013, 12:37:31 PM »
If it's a sprite, better use NGUITools.AddWidgetCollider(), both at runtime and in the editor. This will fit the collider to the size of the sprite :)

Regards

ProjectOne

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Unity Box Collider or NGUI Attach Collider
« Reply #2 on: February 04, 2013, 11:12:47 PM »
ok thanks