Can you please tell me how to make sprites unpickable when they are obscured by the mesh?
I think you’ll need to make an additional call to scene.pick
and check the value of pickResult.distance
: if that of scene.pick
is smaller than that of scene.pickSprite
, then the sprite is obscured.
Thank you. Like this.
1 Like
Yes!
You can simplify the code a little if you want:
1 Like
Thank you.