Class WidgetComponent
The widget component provides a surface in the 3D environment on which to render widgets normally rendered to the screen.
Inheritance
System.Object
WidgetComponent
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 WidgetComponent : MeshComponent
Properties
|
Improve this Doc
View Source
The background color of the component
Declaration
public LinearColor BackgroundColor { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool bAddedToScreen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bApplyGammaCorrection { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bDrawAtDesiredSize { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bEditTimeUsable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bIsTwoSided { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bManuallyRedraw { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
BodySetup
The body setup of the displayed quad
Declaration
public BodySetup BodySetup { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool bReceiveHardwareInput { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bRedrawRequested { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool bWindowFocusable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
The actual draw size, this changes based on DrawSize - or the desired size of the widget if
bDrawAtDesiredSize is true.
Declaration
public IntPoint CurrentDrawSize { get; set; }
Property Value
|
Improve this Doc
View Source
Curvature of a cylindrical widget in degrees.
Declaration
public float CylinderArcAngle { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Get UE4 Default Object for this Class
Declaration
public static WidgetComponent DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
The size of the displayed quad.
Declaration
public IntPoint DrawSize { get; set; }
Property Value
|
Improve this Doc
View Source
ZOrder the layer will be created on, note this only matters on the first time a new layer is created, subsequent additions to the same layer will use the initially defined ZOrder
Declaration
public int LayerZOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
The material instance for masked widget components.
Declaration
public MaterialInterface MaskedMaterial { get; set; }
Property Value
|
Improve this Doc
View Source
The material instance for masked, one-sided widget components.
Declaration
public MaterialInterface MaskedMaterial_OneSided { get; set; }
Property Value
|
Improve this Doc
View Source
The dynamic instance of the material that the render target is attached to
Declaration
public MaterialInstanceDynamic MaterialInstance { get; set; }
Property Value
|
Improve this Doc
View Source
OpacityFromTexture
Sets the amount of opacity from the widget's UI texture to use when rendering the translucent or masked UI to the viewport (0.0-1.0)
Declaration
public float OpacityFromTexture { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
The material instance for opaque widget components
Declaration
public MaterialInterface OpaqueMaterial { get; set; }
Property Value
|
Improve this Doc
View Source
The material instance for opaque, one-sided widget components
Declaration
public MaterialInterface OpaqueMaterial_OneSided { get; set; }
Property Value
|
Improve this Doc
View Source
The owner player for a widget component, if this widget is drawn on the screen, this controls
what player's screen it appears on for split screen, if not set, users player 0.
Declaration
public LocalPlayer OwnerPlayer { get; set; }
Property Value
|
Improve this Doc
View Source
The Alignment/Pivot point that the widget is placed at relative to the position.
Declaration
public Vector2D Pivot { get; set; }
Property Value
|
Improve this Doc
View Source
The time in between draws, if 0 - we would redraw every frame.
Declaration
public float RedrawTime { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
The target to which the user widget is rendered
Declaration
public TextureRenderTarget2D RenderTarget { get; set; }
Property Value
|
Improve this Doc
View Source
Layer Name the widget will live on
Declaration
public Name SharedLayerName { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Class StaticClass { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool TickWhenOffscreen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Tint color and opacity for this component
Declaration
public LinearColor TintColorAndOpacity { get; set; }
Property Value
|
Improve this Doc
View Source
The material instance for translucent widget components
Declaration
public MaterialInterface TranslucentMaterial { get; set; }
Property Value
|
Improve this Doc
View Source
The material instance for translucent, one-sided widget components
Declaration
public MaterialInterface TranslucentMaterial_OneSided { get; set; }
Property Value
|
Improve this Doc
View Source
The User Widget object displayed and managed by this component
Declaration
public UserWidget Widget { get; set; }
Property Value
|
Improve this Doc
View Source
The class of User Widget to create and display an instance of
Declaration
public SubclassOf<UserWidget> WidgetClass { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
@return The draw size of the quad in the world
Declaration
public Vector2D GetDrawSize()
Returns
|
Improve this Doc
View Source
@return The dynamic material instance used to render the user widget
Declaration
public MaterialInstanceDynamic GetMaterialInstance()
Returns
|
Improve this Doc
View Source
Gets the local player that owns this widget component.
Declaration
public LocalPlayer GetOwnerPlayer()
Returns
|
Improve this Doc
View Source
@return The render target to which the user widget is rendered
Declaration
public TextureRenderTarget2D GetRenderTarget()
Returns
|
Improve this Doc
View Source
@return The user widget object displayed by this component
Declaration
public UserWidget GetUserWidgetObject()
Returns
|
Improve this Doc
View Source
Spawn an object of this class
Declaration
public static WidgetComponent New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
Requests that the widget be redrawn.
Declaration
public void RequestRedraw()
|
Improve this Doc
View Source
Sets the background color and opacityscale for this widget
Declaration
public void SetBackgroundColor(LinearColor NewBackgroundColor)
Parameters
|
Improve this Doc
View Source
Sets the draw size of the quad in the world
Declaration
public void SetDrawSize(Vector2D Size)
Parameters
|
Improve this Doc
View Source
Declaration
public void SetManuallyRedraw(bool bUseManualRedraw)
Parameters
Type |
Name |
Description |
System.Boolean |
bUseManualRedraw |
|
|
Improve this Doc
View Source
Sets the local player that owns this widget component.
Declaration
public void SetOwnerPlayer(LocalPlayer LocalPlayer)
Parameters
|
Improve this Doc
View Source
Sets the tint color and opacity scale for this widget
Declaration
public void SetTintColorAndOpacity(LinearColor NewTintColorAndOpacity)
Parameters
Type |
Name |
Description |
LinearColor |
NewTintColorAndOpacity |
|
|
Improve this Doc
View Source
Sets the widget to use directly.
Declaration
public void SetWidget(UserWidget Widget)
Parameters
Operators
|
Improve this Doc
View Source
Convert from IntPtr to UObject
Declaration
public static implicit operator WidgetComponent(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns