Use mouse draw line in the 2D,how to do?

in teh HUD,how to set