How to get current screen resolution inside my costum HUD-Class?

The title pretty much says it. I already did override the DrawHUD()-Function and try to get the resolution out of “Canvas->SizeX” and “Canvas->ClipX”, but it always seems to put out 0.0 … am I doing something wrong?

Because I wanted to expose my code to blueprints, I did override “Event Receive Draw HUD” instead of “DrawHUD”… that did the trick for me. Altough I don’t know why, since the first one is a function inside the second one… :-/