Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FWidget
Description
Draws protractor like ticks where the rotation widget would snap too. Also, used to draw the wider axis tick marks
| Name | DrawSnapMarker |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/UnrealWidget.h |
| Include Path | #include "UnrealWidget.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/UnrealWidgetRender.cpp |
void DrawSnapMarker
(
FPrimitiveDrawInterface * PDI,
const FVector & InLocation,
const FVector & Axis0,
const FVector & Axis1,
const FColor & InColor,
const float InScale,
const float InWidthPercent,
const float InPercentSize
)
Parameters
| Name | Remarks |
|---|---|
| PDI | Drawing interface |
| InLocation | The Origin of the widget |
| Axis0 | The Axis that describes a 0 degree rotation |
| Axis1 | The Axis that describes a 90 degree rotation |
| InAngle | The Angle to rotate about the axis of rotation, the vector (Axis0 ^ Axis1) |
| InColor | The color to use for line/poly drawing |
| InScale | Multiplier to maintain a constant screen size for rendering the widget |
| InWidthPercent | The percent of the distance between the outer ring and inner ring to use for tangential thickness |
| InPercentSize | The percent of the distance between the outer ring and inner ring to use for radial distance |