struct
LineRendererComponent
- Module
- Game
- Header
#include "Game/Components/LineRendererComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
std::vector<Vec3> | points | legacy "Point" child-node format. |
Vec4 | startColor | Color settings Default Vec4(1, 1, 1, 1). |
Vec4 | endColor | Default Vec4(1, 1, 1, 1). |
std::vector<ColorKey> | colorGradient | |
float | startWidth | Width settings (for ribbon rendering) Default 0.1f. |
float | endWidth | Default 0.1f. |
std::vector<WidthKey> | widthCurve | |
bool | useWorldSpace | Rendering options Default false. |
bool | loop | Default false. |
bool | depthTest | Default true. |
bool | enabled | Default true. |
bool | useRibbonMode | Ribbon rendering (for width > 0) Default false. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | AddPoint | |
void | SetPoint | |
void | InsertPoint | |
void | RemovePoint | |
void | Clear | |
size_t | GetPointCount | |
void | SetColors | |
void | SetColor | |
void | SetWidths | |
void | SetWidth | |
Vec4 | GetColorAt | Get interpolated color at position t (0.0 to 1.0) |
float | GetWidthAt | Get 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() constSetColors
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) constGet interpolated color at position t (0.0 to 1.0)
GetWidthAt
C++
float GetWidthAt(float t) constGet 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