- Open the Editor
- Create a new widget blueprint
- Create an override for the OnPaint function
- Create the blueprint in the attached image
- Compile and save
- Open the level blueprint
- Add the widget to the viewport
Begin play > Create Widget > Add to view port
- Play in a New Editor Widow (Note: this is important )
- Notice that the top and left sides of the screen retain artifacts as the camera is moved around
Expected: The function should draw a line on screen
Result: The function draws a line on screen but also causes the top and left sides of the screen to have a hall of mirrors effect