Skip to content

Is there a way to disable select for a sprite that is higher depth based on some condition? #303

Closed Answered by aevyrie
dfireBird asked this question in Q&A
Discussion options

You must be logged in to vote

Responded in discord, copying here as well:

It depends what picking backend you are using whether or not this is supported. I'd look at the drag and drop example, which does this so that when dragging an object it doesn't trigger pointer events while the dragged object is being dragged.
You could also make the piece a child of the square, that way the event bubbles up to the square even if you click on the piece.

https://discord.com/channels/691052431525675048/1038322714320052304/1196888893644095619

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dfireBird
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants