Hello,
I'm using NGUI 3.0.7 f3 and have problems when I use box collider.
I've got a clean scene, create a sprite and create a label as a child to make a button. When I Attach a box collider to the sprite it takes the same size, until here all ok.
When I play the game, the console show that errors:
Invalid parameter because it was infinity or nan.
UnityEngine.BoxCollider:set_center(Vector3)
NGUITools:UpdateWidgetCollider(BoxCollider, Boolean) (at Assets/NGUI/Scripts/Internal/NGUITools.cs:292)
UIWidget:ResizeCollider() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:571)
UIWidget:OnValidate() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:681)
UISprite:OnValidate() (at Assets/NGUI/Scripts/UI/UISprite.cs:293)
and that
dest.radius>=0.0f
UnityEngine.BoxCollider:set_size(Vector3)
NGUITools:UpdateWidgetCollider(BoxCollider, Boolean) (at Assets/NGUI/Scripts/Internal/NGUITools.cs:293)
UIWidget:ResizeCollider() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:571)
UIWidget:OnValidate() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:681)
UISprite:OnValidate() (at Assets/NGUI/Scripts/UI/UISprite.cs:293)
It get solved If in the UIsprite, I desactivate the checkbox "Box Collider : Auto adjust to match".
Is someone having the same problem?
Thanks!!
PD: Sorry for my english :$