The background works without problems, it doesn't delete the drawings made in the Canvas when restarting the game, just with the eraser function.
The original FreeDraw asset used to delete the entirety of the canvas as it used to be a whiteboard.
This is because the script contains a function that restarts all pixels in the background to white color.
Deactivated it.
For it to work with the pentagon background we need to make the script to delete all new pixels made or delete specific color pixels.
The background works without problems, it doesn't delete the drawings made in the Canvas when restarting the game, just with the eraser function.
The original FreeDraw asset used to delete the entirety of the canvas as it used to be a whiteboard.
This is because the script contains a function that restarts all pixels in the background to white color.
Deactivated it.
For it to work with the pentagon background we need to make the script to delete all new pixels made or delete specific color pixels.