struct

LineRendererComponent

Module
Game
Header
#include "Game/Components/LineRendererComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
std::vector<Vec3>pointslegacy "Point" child-node format.
Vec4startColorColor settings Default Vec4(1, 1, 1, 1).
Vec4endColorDefault Vec4(1, 1, 1, 1).
std::vector<ColorKey>colorGradient
floatstartWidthWidth settings (for ribbon rendering) Default 0.1f.
floatendWidthDefault 0.1f.
std::vector<WidthKey>widthCurve
booluseWorldSpaceRendering options Default false.
boolloopDefault false.
booldepthTestDefault true.
boolenabledDefault true.
booluseRibbonModeRibbon rendering (for width > 0) Default false.

Public functions

ReturnsNameDescription
voidAddPoint
voidSetPoint
voidInsertPoint
voidRemovePoint
voidClear
size_tGetPointCount
voidSetColors
voidSetColor
voidSetWidths
voidSetWidth
Vec4GetColorAtGet interpolated color at position t (0.0 to 1.0)
floatGetWidthAtGet interpolated width at position t (0.0 to 1.0)

Function details

AddPoint

C++
void AddPoint(const Vec3& pos)

SetPoint

C++
void SetPoint(size_t index, const Vec3& pos)

InsertPoint

C++
void InsertPoint(size_t index, const Vec3& pos)

RemovePoint

C++
void RemovePoint(size_t index)

Clear

C++
void Clear()

GetPointCount

C++
size_t GetPointCount() const

SetColors

C++
void SetColors(const Vec4& start, const Vec4& end)

SetColor

C++
void SetColor(const Vec4& color)

SetWidths

C++
void SetWidths(float start, float end)

SetWidth

C++
void SetWidth(float width)

GetColorAt

C++
Vec4 GetColorAt(float t) const

Get interpolated color at position t (0.0 to 1.0)

GetWidthAt

C++
float GetWidthAt(float t) const

Get interpolated width at position t (0.0 to 1.0)

Generated from Game/Components/LineRendererComponent.h via game.json · Nov 5, 2026Version 1.0.0