Class HUD
Base class of the heads-up display.
Inheritance
System.Object
HUD
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
Syntax
Properties
|
Improve this Doc
View Source
bEnableDebugTextShadow
Declaration
public bool bEnableDebugTextShadow { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bLostFocusPaused
Declaration
public bool bLostFocusPaused { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bShowDebugInfo
Declaration
public bool bShowDebugInfo { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bShowHitBoxDebugInfo
Declaration
public bool bShowHitBoxDebugInfo { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bShowHUD
Declaration
public bool bShowHUD { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
bShowOverlays
Declaration
public bool bShowOverlays { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Canvas
Canvas to Draw HUD on. Only valid during PostRender() event.
Declaration
public Canvas Canvas { get; set; }
Property Value
|
Improve this Doc
View Source
CurrentTargetIndex
Current target in our considered Targets list for 'showdebug'
Declaration
public int CurrentTargetIndex { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
DebugCanvas
'Foreground' debug canvas, will draw in front of Slate UI.
Declaration
public Canvas DebugCanvas { get; set; }
Property Value
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static HUD DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
PlayerOwner
PlayerController which owns this HUD.
Declaration
public PlayerController PlayerOwner { get; }
Property Value
|
Improve this Doc
View Source
PostRenderedActors
Holds a list of Actors that need PostRender() calls.
Declaration
public ObjectArrayField<Actor> PostRenderedActors { get; }
Property Value
|
Improve this Doc
View Source
ShowDebugTargetActor
Show Debug Actor used if 'bShowDebugForReticleTarget' is true, only updated if trace from reticle hit a new Actor of class 'ShowDebugTargetDesiredClass'
Declaration
public Actor ShowDebugTargetActor { get; set; }
Property Value
|
Improve this Doc
View Source
ShowDebugTargetDesiredClass
Class filter for selecting 'ShowDebugTargetActor' when 'bShowDebugForReticleTarget' is true.
Declaration
public SubclassOf<Actor> ShowDebugTargetDesiredClass { get; set; }
Property Value
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddHitBox(Vector2D, Vector2D, Name, Boolean, Int32)
Add a hitbox to the hud
@
Declaration
public void AddHitBox(Vector2D Position, Vector2D Size, Name InName, bool bConsumesInput, int Priority)
Parameters
Type |
Name |
Description |
Vector2D |
Position |
|
Vector2D |
Size |
|
Name |
InName |
|
System.Boolean |
bConsumesInput |
|
System.Int32 |
Priority |
|
|
Improve this Doc
View Source
Deproject(Single, Single)
Transforms a 2D screen location into a 3D location and direction
Declaration
public (Vector, Vector) Deproject(float ScreenX, float ScreenY)
Parameters
Type |
Name |
Description |
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
Returns
|
Improve this Doc
View Source
DrawLine(Single, Single, Single, Single, LinearColor, Single)
Draws a 2D line on the HUD.
Declaration
public void DrawLine(float StartScreenX, float StartScreenY, float EndScreenX, float EndScreenY, LinearColor LineColor, float LineThickness)
Parameters
Type |
Name |
Description |
System.Single |
StartScreenX |
|
System.Single |
StartScreenY |
|
System.Single |
EndScreenX |
|
System.Single |
EndScreenY |
|
LinearColor |
LineColor |
|
System.Single |
LineThickness |
|
|
Improve this Doc
View Source
DrawMaterial(MaterialInterface, Single, Single, Single, Single, Single, Single, Single, Single, Single, Boolean, Single, Vector2D)
Draws a material-textured quad on the HUD.
Declaration
public void DrawMaterial(MaterialInterface Material, float ScreenX, float ScreenY, float ScreenW, float ScreenH, float MaterialU, float MaterialV, float MaterialUWidth, float MaterialVHeight, float Scale, bool bScalePosition, float Rotation, Vector2D RotPivot)
Parameters
Type |
Name |
Description |
MaterialInterface |
Material |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
System.Single |
ScreenW |
|
System.Single |
ScreenH |
|
System.Single |
MaterialU |
|
System.Single |
MaterialV |
|
System.Single |
MaterialUWidth |
|
System.Single |
MaterialVHeight |
|
System.Single |
Scale |
|
System.Boolean |
bScalePosition |
|
System.Single |
Rotation |
|
Vector2D |
RotPivot |
|
|
Improve this Doc
View Source
DrawMaterialSimple(MaterialInterface, Single, Single, Single, Single, Single, Boolean)
Draws a material-textured quad on the HUD.
Declaration
public void DrawMaterialSimple(MaterialInterface Material, float ScreenX, float ScreenY, float ScreenW, float ScreenH, float Scale, bool bScalePosition)
Parameters
Type |
Name |
Description |
MaterialInterface |
Material |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
System.Single |
ScreenW |
|
System.Single |
ScreenH |
|
System.Single |
Scale |
|
System.Boolean |
bScalePosition |
|
|
Improve this Doc
View Source
DrawMaterialTriangle(MaterialInterface, Vector2D, Vector2D, Vector2D, Vector2D, Vector2D, Vector2D, LinearColor, LinearColor, LinearColor)
Declaration
public void DrawMaterialTriangle(MaterialInterface Material, Vector2D V0_Pos, Vector2D V1_Pos, Vector2D V2_Pos, Vector2D V0_UV, Vector2D V1_UV, Vector2D V2_UV, LinearColor V0_Color, LinearColor V1_Color, LinearColor V2_Color)
Parameters
|
Improve this Doc
View Source
DrawRect(LinearColor, Single, Single, Single, Single)
Draws a colored untextured quad on the HUD.
Declaration
public void DrawRect(LinearColor RectColor, float ScreenX, float ScreenY, float ScreenW, float ScreenH)
Parameters
Type |
Name |
Description |
LinearColor |
RectColor |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
System.Single |
ScreenW |
|
System.Single |
ScreenH |
|
|
Improve this Doc
View Source
DrawText(String, LinearColor, Single, Single, Font, Single, Boolean)
Draws a string on the HUD.
Declaration
public void DrawText(string Text, LinearColor TextColor, float ScreenX, float ScreenY, Font Font, float Scale, bool bScalePosition)
Parameters
Type |
Name |
Description |
System.String |
Text |
|
LinearColor |
TextColor |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
Font |
Font |
|
System.Single |
Scale |
|
System.Boolean |
bScalePosition |
|
|
Improve this Doc
View Source
DrawTexture(Texture, Single, Single, Single, Single, Single, Single, Single, Single, LinearColor, Byte, Single, Boolean, Single, Vector2D)
Draws a textured quad on the HUD.
Declaration
public void DrawTexture(Texture Texture, float ScreenX, float ScreenY, float ScreenW, float ScreenH, float TextureU, float TextureV, float TextureUWidth, float TextureVHeight, LinearColor TintColor, byte BlendMode, float Scale, bool bScalePosition, float Rotation, Vector2D RotPivot)
Parameters
Type |
Name |
Description |
Texture |
Texture |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
System.Single |
ScreenW |
|
System.Single |
ScreenH |
|
System.Single |
TextureU |
|
System.Single |
TextureV |
|
System.Single |
TextureUWidth |
|
System.Single |
TextureVHeight |
|
LinearColor |
TintColor |
|
System.Byte |
BlendMode |
|
System.Single |
Scale |
|
System.Boolean |
bScalePosition |
|
System.Single |
Rotation |
|
Vector2D |
RotPivot |
|
|
Improve this Doc
View Source
DrawTextureSimple(Texture, Single, Single, Single, Boolean)
Draws a textured quad on the HUD.
Declaration
public void DrawTextureSimple(Texture Texture, float ScreenX, float ScreenY, float Scale, bool bScalePosition)
Parameters
Type |
Name |
Description |
Texture |
Texture |
|
System.Single |
ScreenX |
|
System.Single |
ScreenY |
|
System.Single |
Scale |
|
System.Boolean |
bScalePosition |
|
|
Improve this Doc
View Source
GetActorsInSelectionRectangle(SubclassOf<Actor>, Vector2D, Vector2D, Boolean, Boolean)
Declaration
public IReadOnlyCollection<Actor> GetActorsInSelectionRectangle(SubclassOf<Actor> ClassFilter, Vector2D FirstPoint, Vector2D SecondPoint, bool bIncludeNonCollidingComponents, bool bActorMustBeFullyEnclosed)
Parameters
Type |
Name |
Description |
SubclassOf<Actor> |
ClassFilter |
|
Vector2D |
FirstPoint |
|
Vector2D |
SecondPoint |
|
System.Boolean |
bIncludeNonCollidingComponents |
|
System.Boolean |
bActorMustBeFullyEnclosed |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<Actor> |
|
|
Improve this Doc
View Source
GetOwningPawn()
Returns the Pawn for this HUD's player.
Declaration
public Pawn GetOwningPawn()
Returns
|
Improve this Doc
View Source
GetOwningPlayerController()
Returns the PlayerController for this HUD's player.
Declaration
public PlayerController GetOwningPlayerController()
Returns
|
Improve this Doc
View Source
GetTextSize(String, Font, Single)
Returns the width and height of a string.
Declaration
public (float, float) GetTextSize(string Text, Font Font, float Scale)
Parameters
Type |
Name |
Description |
System.String |
Text |
|
Font |
Font |
|
System.Single |
Scale |
|
Returns
Type |
Description |
System.ValueTuple<System.Single, System.Single> |
|
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static HUD New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
Project(Vector)
Transforms a 3D world-space vector into 2D screen coordinates
Declaration
public Vector Project(Vector Location)
Parameters
Type |
Name |
Description |
Vector |
Location |
|
Returns
Events
|
Improve this Doc
View Source
ReceiveDrawHUD
Hook to allow blueprints to do custom HUD drawing.
Declaration
public event HUD.ReceiveDrawHUD_delegate ReceiveDrawHUD
Event Type
|
Improve this Doc
View Source
ReceiveHitBoxBeginCursorOver
Called when a hit box is moused over.
Declaration
public event HUD.ReceiveHitBoxBeginCursorOver_delegate ReceiveHitBoxBeginCursorOver
Event Type
|
Improve this Doc
View Source
ReceiveHitBoxClick
Called when a hit box is clicked on. Provides the name associated with that box.
Declaration
public event HUD.ReceiveHitBoxClick_delegate ReceiveHitBoxClick
Event Type
|
Improve this Doc
View Source
ReceiveHitBoxEndCursorOver
Called when a hit box no longer has the mouse over it.
Declaration
public event HUD.ReceiveHitBoxEndCursorOver_delegate ReceiveHitBoxEndCursorOver
Event Type
|
Improve this Doc
View Source
ReceiveHitBoxRelease
Called when a hit box is unclicked. Provides the name associated with that box.
Declaration
public event HUD.ReceiveHitBoxRelease_delegate ReceiveHitBoxRelease
Event Type
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to HUD)
Convert from IntPtr to UObject
Declaration
public static implicit operator HUD(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns