How to make endless background in 2d?

Hi, I am making a game where my player fly around in space and I want a background for it.Currently I’m using solid color because it never ends.So is there any way to make such background and having some stars and asteroids moving?
Currently I’m instantiating stars and other stuff but its quite quirky.
Thanks.

The idea with instantiating stars is the way to go here (even though it’s “quirky”). I recommend to move the instances instead of destroying and reinstatiating it if that was your plan. That is much better for performance.