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 DrawRectangleMesh
(
FPrimitiveDrawInterface * PDI,
const FVector & Center,
const FVector & XAxis,
const FVector & YAxis,
FColor Color,
float Width,
float Height,
const FMaterialRenderProxy * MaterialRenderProxy,
uint8 DepthPriority
)
Remarks
Draws a rectangle using triangles.
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. |