Why would exported UI buttons only respond to clicks in the very center of the button

From issue UI Buttons don't respond to clicks always in export 路 Issue #86 路 needle-tools/needle-engine-support 路 GitHub
Exported UI buttons only respond to clicks in the red circled region, I can send a simple repro again if needed. Seems to be affecting all UI exported in my first project with Needle
unknown.png

Original Post on Discord

by user 103054507105067008

Will have a look at this now

Mh I guess you tried logging in your callback when the button is pressed? tried with my buttons here and they work fine.

can you make a scene with this button only and send me? :thinking:

I鈥檒l make a very minimal scene for you 1 sec

by user 103054507105067008

Thank you :slightly_smiling_face:

I must stress that in my larger main project, the text DOES render while the animator is on and I can send that larger project, but the underlying issue of only the center of the button working for clicks is the real issue there.
https://github.com/needle-tools/needle-engine-support/issues/86#issuecomment-1274495969

by user 103054507105067008

Repro in that link

by user 103054507105067008

this panel canvas text is blocking the raycast (its ontop of the button)

moving the button a bit forward fixes the problem

Will try thanks!

by user 103054507105067008

Yup, unticking raycast target on the text didn鈥檛 fix it but moving the button forward a bit did

by user 103054507105067008

Raycast target on texts is currently not implemented

Ah okay at least that鈥檚 known, will close the issue on git

by user 103054507105067008

Looking at that now, it鈥檚 something we changed last week due to text not appearing after enabling an object again if you remember :slightly_smiling_face:

Ok raycastTarget should work in the next version again

Great news!

by user 103054507105067008

This issue will keep me from upgrading, I hope the logs there are useful https://github.com/needle-tools/needle-engine-support/issues/94

by user 103054507105067008

I can report that I had the same issue nearly, and upgrading to the latest update, and also I went through the entire canvas, panels, button text etc. and I removed the raycasttarget option on everything except the button proper and now I get 100% reliable clicks

by user 563549194137239552

Thanks for letting us know! Great

further info鈥 updating to the latest didn鈥檛 work on it鈥檚 own, but i took a hint from you mentioning raycasttarget in the release notes to look into that and remove it from anything i didn鈥檛 want getting clicks

by user 563549194137239552