[Unity game development tutorial] Zero foundation takes you from Xiaobai to Super God 21 - line and tail

Line (line Renderer component)

Create a new line (right-click->effect->new line, you can also add a line Renderer component to other objects).
insert image description here
After adding the component, you will get a line segment renderer that is not affected by the object. You can adjust the position by changing the position of the line segment (size control The number of points, the rendering connects the points to achieve the line drawing effect)

insert image description here
Change the corner vertices to deal with the corners of the line turning, change the end vertices to deal with the corners of the fixed points of the line, so that the transition of the line will be smoother. Check the cycle, and the head and tail of the line will be connected. Click the first button of the scene insert image description here
tool
insert image description here
to get three points , drag the three points separately to change the position.
insert image description here
The button on the right can add points, click the mouse to add points, and if the mouse click is not loose, you can draw a line to add points

Guess you like

Origin blog.csdn.net/qq_36303853/article/details/129779687