Navigation
API > API/Runtime > API/Runtime/SlateCore
The different states of pixel snapping a widget can be in.
| Name | EWidgetPixelSnapping |
| Type | enum |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/WidgetPixelSnapping.h |
| Include Path | #include "Widgets/WidgetPixelSnapping.h" |
Syntax
enum EWidgetPixelSnapping
{
Inherit,
Disabled,
SnapToPixel,
}
Values
| Name | Remarks |
|---|---|
| Inherit | Inherits the snapping method set by the parent widget. |
| Disabled | Draws the widget without snapping. Useful during animations or moving indicators. |
| SnapToPixel | Draws the widget at the nearest pixel. Improves sharpness of widgets. |