Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FWidget
Description
If actively dragging, draws a ring representing the potential rotation of the selected objects, snap ticks, and "delta" markers If not actively dragging, draws a quarter ring representing the closest quadrant to the camera If actively dragging, draws a ring representing the potential rotation of the selected objects, snap ticks, and "delta" markers If not actively dragging, draws a quarter ring representing the closest quadrant to the camera
| Name | DrawRotationArc |
| 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 DrawRotationArc
(
const FSceneView * View,
FPrimitiveDrawInterface * PDI,
EAxisList::Type InAxis,
const FVector & InLocation,
const FVector & Axis0,
const FVector & Axis1,
const FVector & InDirectionToWidget,
const FColor & InColor,
const float InScale,
FVector2D & OutAxisEnd
)
Parameters
| Name | Remarks |
|---|---|
| View | Information about the scene/camera/etc |
| PDI | Drawing interface |
| InAxis | Enumeration of axis to rotate about |
| InLocation | The Origin of the widget |
| Axis0 | The Axis that describes a 0 degree rotation |
| Axis1 | The Axis that describes a 90 degree rotation |
| InDirectionToWidget | Direction from camera to the widget |
| InColor | The color associated with the axis of rotation |
| InScale | Multiplier to maintain a constant screen size for rendering the widget |
| OutAxisDir | Viewport-space direction of rotation arc chord is placed here |
| View | Information about the scene/camera/etc |
| PDI | Drawing interface |
| InAxis | Enumeration of axis to rotate about |
| InLocation | The Origin of the widget |
| Axis0 | The Axis that describes a 0 degree rotation |
| Axis1 | The Axis that describes a 90 degree rotation |
| InDirectionToWidget | Direction from camera to the widget |
| InColor | The color associated with the axis of rotation |
| InScale | Multiplier to maintain a constant screen size for rendering the widget |