UEC++:HUD

Draw text:

 


Canvas: Fonts are required

 


Canvas color settings:


Enlarge fonts without distortion:

 


Draw the picture:

 

 Draw pictures in complex ways:


Draw the shader:

 

  

 Draw a line: starting position, end position, color, thickness

 

 2d and 3d display:

Draw a rectangle:

Draw the wireframe:

 


Get input events:

Define playcontroller:

 

 

 


Click input event:

 Click to trigger results:

 

 Draw the clicked area:

Must be enabled: click event

 

 Key points:

When a click event occurs, the parent HUD must be called (the simplest solution), because there is a reset function in it, which can reset each click and drawing, so it will not be repeated every time the click position is refreshed. Construction issues.


Binding response events: There is an implementation in bird:

 

Guess you like

Origin blog.csdn.net/qq_44160901/article/details/131749345