ATT
That’s what masks are for.
There is a hack where you can drop an invisible object that’s your hit target on top of the image you’re wanting to appear to be clickable. Make sure to set .isHitTestable = true on the invisible object and put your touch handler on it. This is probably less efficient than a mask and you have no control over the shape of the target (i.e. it’s a rectangle or circle, though you could do a rough polygon I suppose).
Rob
If you are using images as your button - then croping the original image as close as you can would solve the problem but then again they will still be a rectangle or square.
Otherwise Rob’s options!
T.
That’s what masks are for.
There is a hack where you can drop an invisible object that’s your hit target on top of the image you’re wanting to appear to be clickable. Make sure to set .isHitTestable = true on the invisible object and put your touch handler on it. This is probably less efficient than a mask and you have no control over the shape of the target (i.e. it’s a rectangle or circle, though you could do a rough polygon I suppose).
Rob
If you are using images as your button - then croping the original image as close as you can would solve the problem but then again they will still be a rectangle or square.
Otherwise Rob’s options!
T.