public void OnPointerDown(PointerEventData eventData) { UIShape.Model ownerModel = owner.model; if (VERBOSE) { Debug.Log("pointer current raycast: " + eventData.pointerCurrentRaycast, eventData.pointerCurrentRaycast.gameObject); Debug.Log("pointer press raycast: " + eventData.pointerPressRaycast, eventData.pointerPressRaycast.gameObject); } if (!string.IsNullOrEmpty(ownerModel.onClick) && eventData.pointerPressRaycast.gameObject == childHookRectTransform.gameObject) { WebInterface.ReportOnClickEvent(owner.scene.sceneData.id, ownerModel.onClick); } }