Class LineRenderer
Assembly: UnityEngine.dll
Syntax
public sealed class LineRenderer : Renderer
Properties
alignment
Declaration
public LineAlignment alignment { get; set; }
Property Value
|
Improve this Doc
View Source
colorGradient
Declaration
public Gradient colorGradient { get; set; }
Property Value
endColor
Declaration
public Color endColor { get; set; }
Property Value
endWidth
Declaration
public float endWidth { get; set; }
Property Value
generateLightingData
Declaration
public bool generateLightingData { get; set; }
Property Value
loop
Declaration
public bool loop { get; set; }
Property Value
numCapVertices
Declaration
public int numCapVertices { get; set; }
Property Value
numCornerVertices
Declaration
public int numCornerVertices { get; set; }
Property Value
|
Improve this Doc
View Source
numPositions
Declaration
[Obsolete("Use positionCount instead (UnityUpgradable) -> positionCount", false)]
public int numPositions { get; set; }
Property Value
positionCount
Declaration
public int positionCount { get; set; }
Property Value
shadowBias
Declaration
public float shadowBias { get; set; }
Property Value
startColor
Declaration
public Color startColor { get; set; }
Property Value
startWidth
Declaration
public float startWidth { get; set; }
Property Value
textureMode
Declaration
public LineTextureMode textureMode { get; set; }
Property Value
useWorldSpace
Declaration
public bool useWorldSpace { get; set; }
Property Value
|
Improve this Doc
View Source
widthCurve
Declaration
public AnimationCurve widthCurve { get; set; }
Property Value
widthMultiplier
Declaration
public float widthMultiplier { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BakeMesh(Mesh, Boolean)
Declaration
public void BakeMesh(Mesh mesh, bool useTransform = false)
Parameters
BakeMesh(Mesh, Camera, Boolean)
Declaration
public void BakeMesh(Mesh mesh, Camera camera, bool useTransform = false)
Parameters
GetPosition(Int32)
Declaration
public Vector3 GetPosition(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetPositions(Vector3[])
Declaration
public int GetPositions(Vector3[] positions)
Parameters
Type |
Name |
Description |
Vector3[] |
positions |
|
Returns
|
Improve this Doc
View Source
SetColors(Color, Color)
Declaration
[Obsolete("Use startColor, endColor or colorGradient instead.", false)]
public void SetColors(Color start, Color end)
Parameters
SetPosition(Int32, Vector3)
Declaration
public void SetPosition(int index, Vector3 position)
Parameters
SetPositions(Vector3[])
Declaration
public void SetPositions(Vector3[] positions)
Parameters
Type |
Name |
Description |
Vector3[] |
positions |
|
|
Improve this Doc
View Source
SetVertexCount(Int32)
Declaration
[Obsolete("Use positionCount instead.", false)]
public void SetVertexCount(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
|
Improve this Doc
View Source
SetWidth(Single, Single)
Declaration
[Obsolete("Use startWidth, endWidth or widthCurve instead.", false)]
public void SetWidth(float start, float end)
Parameters
Simplify(Single)
Declaration
public void Simplify(float tolerance)
Parameters
Type |
Name |
Description |
Single |
tolerance |
|
Extension Methods