Starting a thread to avoid continue flooding flood the main channel.
Myabe check the position values of the raycast :
RectTransformUtility.ScreenPointToLocalPointInRectanglealready returns a boolean value, so it makes your "Raycast condition" only doubling the check.- The
localPointoutput should be in the local space of the RectTransform, but it looks like you are still trying to transform it afeterwards. I'm unsure exactly what the doc states as "the local space of the RectTransform", it might need a bit of transformation but maybe not the one you are doing.