Closed davyzhang closed 1 year ago
Please, can you make a small project, with only that scene, so I can reproduce the error?
No problem, check the attachment please. Try to toggle off and back on the HitArea will reproduce the problem bug.zip
Ok, I see a couple of issues here. I keep you updated.
Oh! I found it! The hit area is rendered far away from the object:
Thank you so much for working on t this, sorry for confusion, the data shows in the editor shoudn't offset to the parent. glad you found it
Fixed. Thanks.
Version
Description
The image working as a button is nested in 2 containers as the picture shows. Clicking on enable hit area, will give the wrong rectangle.
Possible solution
Calculate the size and Update the rectangle manually. It looks like the editor only goes up one level to read the