Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp |
void DrawRectangle
(
FPrimitiveDrawInterface * PDI,
const FVector & Center,
const FVector & XAxis,
const FVector & YAxis,
FColor Color,
float Width,
float Height,
uint8 DepthPriority,
float Thickness,
float DepthBias,
bool bScreenSpace
)
Remarks
Draws a rectangle using lines.
Parameters
| Name | Description |
|---|---|
| PDI | Draw interface. |
| Center | Center of the rectangle. |
| XAxis | Normalized X alignment axis. |
| YAxis | Normalized Y alignment axis. |
| Color | Color of the circle. |
| Width | Width of rectangle along the X dimension. |
| Height | Height of rectangle along the Y dimension. |
| MaterialRenderProxy | Material to use for render |
| DepthPriority | Depth priority for the rectangle. |
| Thickness | Thickness of the lines comprising the rectangle. |