If I use a panel on each marker my draw calls number will explode because I could have a lot of markers on my map. (a panel = 1draw call, right ?)
I am at this point :
- _mapMarkersRoot
-- _playerMarker (UIWidget, rigidbody, 2D collider)
-- _itemMarker (UIWidget, 2D collider)
-- _itemMarker (UIWidget, 2D collider)
...
Now I get both collide and click detection, but very very strange behaviors happens with the marker players :
- _markerPlayer hits the buttons (the squares at screen bottom) when I drag the marker vertically on them, but without hitting them.
- the click event may be in conflict with another event. I have to click/drag several times on the _playerMaker to get the click event. This does not happen when I remove the rigidbody.