Class WidgetLayoutLibrary
Inheritance
System.Object
WidgetLayoutLibrary
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
public class WidgetLayoutLibrary : BlueprintFunctionLibrary
Properties
|
Improve this Doc
View Source
Get UE4 Default Object for this Class
Declaration
public static WidgetLayoutLibrary DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
Gets the platform's mouse cursor position. This is the 'absolute' desktop location of the mouse.
Declaration
public static Vector2D GetMousePositionOnPlatform()
Returns
|
Improve this Doc
View Source
Gets the platform's mouse cursor position in the local space of the viewport widget.
Declaration
public static Vector2D GetMousePositionOnViewport(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
Returns
|
Improve this Doc
View Source
Gets the mouse position of the player controller, scaled by the DPI.
Declaration
public static (float, float, bool) GetMousePositionScaledByDPI(PlayerController Player)
Parameters
Returns
Type |
Description |
System.ValueTuple<System.Single, System.Single, System.Boolean> |
|
|
Improve this Doc
View Source
Gets the geometry of the widget holding all widgets added to the "Player Screen".
Declaration
public static Geometry GetPlayerScreenWidgetGeometry(PlayerController PlayerController)
Parameters
Returns
|
Improve this Doc
View Source
Gets the current DPI Scale being applied to the viewport and all the Widgets.
Declaration
public static float GetViewportScale(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
Returns
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Gets the size of the game viewport.
Declaration
public static Vector2D GetViewportSize(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
Returns
|
Improve this Doc
View Source
Gets the geometry of the widget holding all widgets added to the "Viewport".
Declaration
public static Geometry GetViewportWidgetGeometry(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
Returns
|
Improve this Doc
View Source
Spawn an object of this class
Declaration
public static WidgetLayoutLibrary New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
Gets the projected world to screen position for a player, then converts it into a widget
position, which takes into account any quality scaling.
Declaration
public static (Vector2D, bool) ProjectWorldLocationToWidgetPosition(PlayerController PlayerController, Vector WorldLocation)
Parameters
Returns
Type |
Description |
System.ValueTuple<Vector2D, System.Boolean> |
|
|
Improve this Doc
View Source
Removes all widgets from the viewport.
Declaration
public static void RemoveAllWidgets(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Border Slot, allowing you to manipulate layout information.
Declaration
public static BorderSlot SlotAsBorderSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Canvas Slot, allowing you to manipulate layout information.
Declaration
public static CanvasPanelSlot SlotAsCanvasSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Grid Slot, allowing you to manipulate layout information.
Declaration
public static GridSlot SlotAsGridSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Horizontal Box Slot, allowing you to manipulate its information.
Declaration
public static HorizontalBoxSlot SlotAsHorizontalBoxSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Overlay Slot, allowing you to manipulate layout information.
Declaration
public static OverlaySlot SlotAsOverlaySlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Uniform Grid Slot, allowing you to manipulate layout information.
Declaration
public static UniformGridSlot SlotAsUniformGridSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
|
Improve this Doc
View Source
Gets the slot object on the child widget as a Vertical Box Slot, allowing you to manipulate its information.
Declaration
public static VerticalBoxSlot SlotAsVerticalBoxSlot(Widget Widget)
Parameters
Type |
Name |
Description |
Widget |
Widget |
|
Returns
Operators
|
Improve this Doc
View Source
Convert from IntPtr to UObject
Declaration
public static implicit operator WidgetLayoutLibrary(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns