用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:linerenderer:linerenderer

LineRenderer 线性渲染

class in UnityEngine/Inherits from: Renderer

Description 描述

The line renderer is used to draw free-floating lines in 3D space.

该线性渲染用于在3D空间中绘制独立线条。

This class is a script interface for a line renderer component.

该类是线性渲染器组件的脚本接口。

Variables 变量

useWorldSpaceIf enabled, the lines are defined in world space.
如果启用,该线条定义在世界空间中。

Public Functions 公共函数

SetColorsSet the line color at the start and at the end.
设置开始和结束时线条颜色。
SetPositionSet the position of the vertex in the line.
在线条上设置线条的顶点位置。
SetPositionsSet the positions of all vertices in the line.
设置线条上所有的顶点的位置。
SetVertexCountSet the number of line segments.
设置线条的段数的数量。
SetWidthSet the line width at the start and at the end.
设置开始和结束的线条宽度。
script/unityengine/classes/linerenderer/linerenderer.txt · 最后更改: 2016/08/02 05:32 (外部编辑)