Class TrailRenderer
Inheritance
TrailRenderer
Assembly: UnityEngine.dll
Syntax
public sealed class TrailRenderer : Renderer
Properties
alignment
Declaration
public LineAlignment alignment { get; set; }
Property Value
autodestruct
Declaration
public bool autodestruct { get; set; }
Property Value
|
Improve this Doc
View Source
colorGradient
Declaration
public Gradient colorGradient { get; set; }
Property Value
emitting
Declaration
public bool emitting { 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
minVertexDistance
Declaration
public float minVertexDistance { 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; }
Property Value
positionCount
Declaration
public int positionCount { get; }
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
time
Declaration
public float time { 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
AddPosition(Vector3)
Declaration
public void AddPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
AddPositions(Vector3[])
Declaration
public void AddPositions(Vector3[] positions)
Parameters
Type |
Name |
Description |
Vector3[] |
positions |
|
|
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
Clear()
Declaration
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
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 |
|
Extension Methods