There is no magic here. If the Debug mode shows you hovering over objects, those objects will receive events. You can try using simple functions like "void OnClick () { Debug.Log("Clicked!"); }" as well. Remember, Select event is only sent out once. Repeated clicks on the same object won't send a Select event.
Also not sure why "UICamera.selectedObject.transform.root.name" is there. If this function is on a script attached to the object with a collider, then Debug.Log("Selected " + name); is enough.