Connection between 3D Point and 2D Point


As shown in the diagram. How to use three to achieve the effect of this line, colleagues as the camera’s moving line always link to two locations

The main task here is to transform a point (the position of the sprite) from screen space to world space. This can be done via Vector3.unproject. The following example shows this approach by connecting a mesh and a sprite with a 3D line.