Block Tap to Spawn
-
Yes, you could do something similar to this touch depth sorting script that Olha shared: https://support.lensstudio.snapchat.com/hc/en-us/community/posts/360059703172/comments/360009928591
You don't have to base the compare value on render order, when I do it I just use numbers or an if statement checking what it is.
The logic is basically:
Make custom touch controller script
On all touchable things, make a custom touch function that feeds to that touch controller
Save a pool of the custom touch events as they are called and in a *late* update event use a comparison on them to determine which custom touch event's callback to actually trigger
--
This isn't the only way of course though, you could also just check a touch position in screen space vs your UI to see if it overlaps. Always a few options
Comment actions -
Thanks very much brandon, I had this problem, I'll see what I can do with it
Comment actions
Please sign in to leave a comment.
Have a comment?