Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd > FWidget
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Public/UnrealWidget.h |
Include | #include "UnrealWidget.h" |
Source | /Engine/Source/Editor/UnrealEd/Private/UnrealWidgetRender.cpp |
void DrawSnapMarker
&40;
FPrimitiveDrawInterface &42; PDI,
const FVector & InLocation,
const FVector & Axis0,
const FVector & Axis1,
const FColor & InColor,
const float InScale,
const float InWidthPercent,
const float InPercentSize
&41;
Remarks
Draws protractor like ticks where the rotation widget would snap too. Also, used to draw the wider axis tick marks
Parameters
Name | Description |
---|---|
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 |