How to use UCanvcas to draw a polygon?

Hi
I want to use draw some geometry shape in screen, and I find there is an UCanvas class, seemd can do this, but how to use the class? I create a instance, then call its function, but nothong redered on screen