Using the canvas as the parent of an element makes it disappear

Hello, Why does a button disappear if I set canvas as his parent ?

canvas = createCanvas(800, 600);
button = createButton("huhu");
button.parent(canvas);

Answers

Sign In or Register to comment.