I just realized that the UI system does not work with the new BoxCollider2D, which means that the classic BoxCollider has to be used, which also means that unity has to include the Physix engine along with Box2D.
Mixing the 2 types of colliders will make unity run both engines at the same time if I'm not mistaken.
I'm worried about performance and file size, should I? HOw much difficult would be to update the tk2dUiManager to use the 2D engine?
update:
I added this to the tk2dUiManager, instead of the 3d code, seems to be working:
var hit = Physics2D.Raycast(ray.origin, ray.direction, 10f);
if(hit.collider != null)
{
return hit.collider.GetComponent<tk2dUIItem>();
}
Will this break some functionality somewhere?