| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/LineBatchComponent.h |
Include |
#include "Components/LineBatchComponent.h" |
class ULineBatchComponent : public UPrimitiveComponent
The line batch component buffers and draws lines (and some other line-based shapes) in a scene. This can be useful for debug drawing, but is not very performant for runtime use.
Name | Description | ||
---|---|---|---|
|
TArray< struct ... |
BatchedLines |
Buffer of lines to draw |
|
TArray< struct ... |
BatchedMeshes |
Buffer of simple meshes to draw |
|
TArray< struct ... |
BatchedPoints |
Buffer or points to draw |
|
uint32: 1 |
bCalculateAccurateBounds |
Whether to calculate a tight accurate bounds (encompassing all points), or use a giant bounds that is fast to compute. |
|
float |
DefaultLifeTime |
Default time that lines/points will draw for |
Name | Description | |
---|---|---|
|
ULineBatchComponent ( |
Name | Description | ||
---|---|---|---|
|
void |
DrawBox ( |
Draw a box |
|
void |
DrawCircle ( |
Draw a circle |
|
void |
DrawDirectionalArrow ( |
Draw an arrow |
|
void |
DrawLine ( |
|
|
void |
DrawLines ( |
Provide many lines to draw - faster than calling DrawLine many times. |
|
void |
DrawMesh |
Draw a mesh |
|
void |
DrawPoint ( |
|
|
void |
DrawSolidBox ( |
Draw a box |
|
void |
Flush() |
Clear all batched lines, points and meshes |
Name | Description | ||
---|---|---|---|
|
FPrimitiveSc... |
CreateSceneProxy() |
Creates a new scene proxy for the line batcher component. |
Name | Description | ||
---|---|---|---|
|
FBoxSphereBo... |
CalcBounds ( |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
Name | Description | ||
---|---|---|---|
|
void |
ApplyWorldOffset ( |
Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location |
|
void |
TickComponent ( |
Function called every frame on this ActorComponent. |