Shape automatically disappears

Hey, thanks my previous problem was solved but there another one, I have set the event to when I click, the line should start drawing (without triggering once condition) but when the mouse button releases the line which was created disappears automatically.
Plz help.

If you use the “shape painter”, I think it deletes automatically indeed.
If you want to draw permanently, make an object that is the size of your brush, and create it when click is pressed (still without condition).

Yes, it is automatically cleared. I submitted a feature request for changing that: [Change Request] Don't clear shape painter on every frame

Thanks for reply so now I am using sprite of which I want to change height in upward direction when I click but It is only letting me to change the height in downward direction, If I change the y scale to maybe negative 100 the object disappears. Plz help.