How does unity let the object join the UI and move with the object

How does unity let the object join the UI and move with the object


1. Create the UI that needs to be added under the object

2. Modify the rendering mode

Change the rendering mode of canvas Render Mode to world Space

3. Modify UI coordinates and size

Modify the local coordinates of the canvas to 0,0,0 and
set the local coordinates of the added ui picture to 0,0,0
and finally modify the size of the ui

Guess you like

Origin blog.csdn.net/lucky_XiaoZhang/article/details/127852175