LineRendererBase
class in UnityEngine · UnityEngine.CoreModule · inherits from Renderer
Not in Unity's public API, or in an assembly the coverage doesn't count.Unity's documentation
In Tassix
What LineRenderer and TrailRenderer share: the line's look and the mesh it's drawn with, rebuilt after LateUpdate when it changed.
Properties 16
LineAlignment alignment { get; set; }bool applyActiveColorSpace { get; set; }Gradient colorGradient { get; set; }Color endColor { get; set; }float endWidth { get; set; }bool generateLightingData { get; set; }SpriteMaskInteraction maskInteraction { get; set; }int numCapVertices { get; set; }int numCornerVertices { get; set; }float shadowBias { get; set; }Color startColor { get; set; }float startWidth { get; set; }LineTextureMode textureMode { get; set; }Vector2 textureScale { get; set; }AnimationCurve widthCurve { get; set; }float widthMultiplier { get; set; }Methods 3
void BakeMesh(Mesh mesh, bool useTransform = false)void BakeMesh(Mesh mesh, Camera camera, bool useTransform = false)The line's triangles into mesh: a world-space line as it's drawn; a local-space line in local space, or with the transform's rotation and scale (not its position) applied.
void SetWidth(float start, float end)