Sprite picking issue

How to get pickdSprite in the _pickInfo of pointerInfo without pickSprite

Hey sorry but I struggle to understand your ask :frowning: can you elaborate please?


I want to be able to get pickedPrite in the pointerInfo of onPointerObservable when clicking on sprite, but it doesn’t exist and can only be obtained through scene PickSprite may be obtained, but there is a problem: if there is a mesh after the sprite, the pointerInfo of onPointerObservable will return the picked mesh, which may cause the effect of my mesh pick, such as highlighting, and affect my project

I believe it is possible to solve with some additional logic?

Maybe this post can help:

1 Like