Class TextBlock
A simple static text widget.
Inherited Members
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class TextBlock : TextLayoutWidget
Remarks
- No Children
- Text
Properties
| Improve this Doc View SourcebWrapWithInvalidationPanel
Declaration
public bool bWrapWithInvalidationPanel { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ColorAndOpacity
The color of the text
Declaration
public SlateColor ColorAndOpacity { get; }
Property Value
Type | Description |
---|---|
SlateColor |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static TextBlock DefaultObject { get; }
Property Value
Type | Description |
---|---|
TextBlock |
Font
The font to render the text with
Declaration
public SlateFontInfo Font { get; }
Property Value
Type | Description |
---|---|
SlateFontInfo |
MinDesiredWidth
The minimum desired size for the text
Declaration
public float MinDesiredWidth { get; }
Property Value
Type | Description |
---|---|
System.Single |
ShadowColorAndOpacity
The color of the shadow
Declaration
public LinearColor ShadowColorAndOpacity { get; }
Property Value
Type | Description |
---|---|
LinearColor |
ShadowOffset
The direction the shadow is cast
Declaration
public Vector2D ShadowOffset { get; }
Property Value
Type | Description |
---|---|
Vector2D |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetDynamicFontMaterial()
Get Dynamic Font Material
Declaration
public MaterialInstanceDynamic GetDynamicFontMaterial()
Returns
Type | Description |
---|---|
MaterialInstanceDynamic |
GetDynamicOutlineMaterial()
Get Dynamic Outline Material
Declaration
public MaterialInstanceDynamic GetDynamicOutlineMaterial()
Returns
Type | Description |
---|---|
MaterialInstanceDynamic |
GetText()
Gets the widget text @
Declaration
public byte GetText()
Returns
Type | Description |
---|---|
System.Byte |
Remarks
return The widget text
New(UObject, Name)
Spawn an object of this class
Declaration
public static TextBlock New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
TextBlock |
SetAutoWrapText(Boolean)
Set the auto wrap for this text block.
Declaration
public void SetAutoWrapText(bool InAutoTextWrap)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | InAutoTextWrap |
Remarks
@param InAutoTextWrap to turn wrap on or off.
SetColorAndOpacity(SlateColor)
Sets the color and opacity of the text in this text block @
Declaration
public void SetColorAndOpacity(SlateColor InColorAndOpacity)
Parameters
Type | Name | Description |
---|---|---|
SlateColor | InColorAndOpacity |
Remarks
param InColorAndOpacity The new text color and opacity
SetFont(SlateFontInfo)
Dynamically set the font info for this text block @
Declaration
public void SetFont(SlateFontInfo InFontInfo)
Parameters
Type | Name | Description |
---|---|---|
SlateFontInfo | InFontInfo |
Remarks
param InFontInfo THe new font info
SetJustification(Byte)
Set the text justification for this text block @
Declaration
public void SetJustification(byte InJustification)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | InJustification |
Remarks
param InJustification new justification
SetMinDesiredWidth(Single)
Set the minimum desired width for this text block @
Declaration
public void SetMinDesiredWidth(float InMinDesiredWidth)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InMinDesiredWidth |
Remarks
param InMinDesiredWidth new minimum desired width
SetOpacity(Single)
Sets the opacity of the text in this text block @
Declaration
public void SetOpacity(float InOpacity)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InOpacity |
Remarks
param InOpacity The new text opacity
SetShadowColorAndOpacity(LinearColor)
Sets the color and opacity of the text drop shadow Note: if opacity is zero no shadow will be drawn @
Declaration
public void SetShadowColorAndOpacity(LinearColor InShadowColorAndOpacity)
Parameters
Type | Name | Description |
---|---|---|
LinearColor | InShadowColorAndOpacity |
Remarks
param InShadowColorAndOpacity The new drop shadow color and opacity
SetShadowOffset(Vector2D)
Sets the offset that the text drop shadow should be drawn at @
Declaration
public void SetShadowOffset(Vector2D InShadowOffset)
Parameters
Type | Name | Description |
---|---|---|
Vector2D | InShadowOffset |
Remarks
param InShadowOffset The new offset
SetText(Byte)
Directly sets the widget text.
Declaration
public void SetText(byte InText)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | InText |
Remarks
Warning: This will wipe any binding created for the Text property! @param InText The text to assign to the widget
Operators
| Improve this Doc View SourceImplicit(IntPtr to TextBlock)
Convert from IntPtr to UObject
Declaration
public static implicit operator TextBlock(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
TextBlock |