Hello,
i was playing around with creating Sprites on Pointer down and for some reason I can never get a “pickedSprite” from the pickInfo.
What am I doing wrong here?
https://www.babylonjs-playground.com/#XBPQ23
thanks!
Hello,
i was playing around with creating Sprites on Pointer down and for some reason I can never get a “pickedSprite” from the pickInfo.
What am I doing wrong here?
https://www.babylonjs-playground.com/#XBPQ23
thanks!
It is because sprites are always picked after meshes to speed up picking.
In your case you could use the dedicated pickSprite function to do your check:
https://www.babylonjs-playground.com/#XBPQ23#3
Ah! I see. Thank you!