返回介绍

LineRenderer 线性渲染

发布于 2019-12-18 15:37:56 字数 1752 浏览 1086 评论 0 收藏 0

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.
设置开始和结束的线条宽度。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文