|
| UGridSlot | SlotAsGridSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Grid Slot, allowing you to manipulate layout information.
|
| UCanvasPanelSlot | SlotAsCanvasSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Canvas Slot, allowing you to manipulate layout information.
|
| UWrapBoxSlot | SlotAsWrapBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Wrap Box Slot, allowing you to manipulate its information.
|
| USafeZoneSlot | SlotAsSafeBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Safe Box Slot, allowing you to manipulate its information.
|
| UUniformGridSlot | SlotAsUniformGridSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Uniform Grid Slot, allowing you to manipulate layout information.
|
| UScaleBoxSlot | SlotAsScaleBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Scale Box Slot, allowing you to manipulate its information.
|
| USizeBoxSlot | SlotAsSizeBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Size Box Slot, allowing you to manipulate its information.
|
| UVerticalBoxSlot | SlotAsVerticalBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Vertical Box Slot, allowing you to manipulate its information.
|
| UBorderSlot | SlotAsBorderSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Border Slot, allowing you to manipulate layout information.
|
| UWidgetSwitcherSlot | SlotAsWidgetSwitcherSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Widget Switcher Slot, allowing you to manipulate its information.
|
| UScrollBoxSlot | SlotAsScrollBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Scroll Box Slot, allowing you to manipulate its information.
|
| UHorizontalBoxSlot | SlotAsHorizontalBoxSlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Horizontal Box Slot, allowing you to manipulate its information.
|
| UOverlaySlot | SlotAsOverlaySlot (UWidget Widget) |
| | Gets the slot object on the child widget as a Overlay Slot, allowing you to manipulate layout information.
|
| FGeometry | GetPlayerScreenWidgetGeometry (APlayerController PlayerController) |
| | Gets the geometry of the widget holding all widgets added to the "Player Screen". You can use this geometry to convert between absolute and local space of widgets held on this widget.
|
| FGeometry | GetViewportWidgetGeometry () |
| | Gets the geometry of the widget holding all widgets added to the "Viewport". You can use this geometry to convert between absolute and local space of widgets held on this widget.
|
| bool | ProjectWorldLocationToWidgetPosition (APlayerController PlayerController, FVector WorldLocation, FVector2D &ScreenPosition, bool bPlayerViewportRelative) |
| | Gets the projected world to screen position for a player, then converts it into a widget position, which takes into account any quality scaling.
|
| float32 | GetViewportScale () |
| | Gets the current DPI Scale being applied to the viewport and all the Widgets.
|
| void | RemoveAllWidgets () |
| | Removes all widgets from the viewport.
|
| FVector2D | GetViewportSize () |
| | Gets the size of the game viewport.
|
| bool | GetMousePositionScaledByDPI (APlayerController Player, float32 &LocationX, float32 &LocationY) |
| | Gets the mouse position of the player controller, scaled by the DPI. If you're trying to go from raw mouse screenspace coordinates to fullscreen widget space, you'll need to transform the mouse into DPI Scaled space. This function performs that scaling.
|
| FVector2D | GetMousePositionOnViewport () |
| | Gets the platform's mouse cursor position in the local space of the viewport widget.
|
| FVector2D | GetMousePositionOnPlatform () |
| | Gets the platform's mouse cursor position. This is the 'absolute' desktop location of the mouse.
|
| bool GetMousePositionScaledByDPI |
( |
APlayerController | Player, |
|
|
float32 & | LocationX, |
|
|
float32 & | LocationY ) |
Gets the mouse position of the player controller, scaled by the DPI. If you're trying to go from raw mouse screenspace coordinates to fullscreen widget space, you'll need to transform the mouse into DPI Scaled space. This function performs that scaling.
MousePositionScaledByDPI = MousePosition * (1 / ViewportScale). UE_DEPRECATED(4.17, "Use GetMousePositionOnViewport() instead. Optionally and for more options, you can use GetViewportWidgetGeometry and GetPlayerScreenWidgetGeometry are newly introduced to give you the geometry of the viewport and the player screen for widgets to help convert between spaces.")