Answer the question
In order to leave comments, you need to log in
How to move cursor in canvas over 3d objects?
Let's say there is a scene: a camera, a light, a canvas with a sprite, three cubes.
By pressing the arrows (left, right) you need to move the sprite in the canvas so that it is on the screen on top of the cube object.
How I saw it and how I tried to implement it:
Through camera.WorldToScreenPoint we get the coordinates of the cube on the screen, we change the coordinates of the sprite to the received coordinates.
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question