Sidescroller clean transition between backgrounds

I’m working on a sidescroller, and not super familiar with unity as I usually use UE4/5. I have a looping animated background (similar to what you’d see in flappy bird or any constantly moving forward runner/platformer) in my case I need to switch between backgrounds at certain stages. I’d like it to look like it just continues into the next “biome” and have transition backgrounds between each of the biomes, but just changing the sprite on the animation simply switches the visible animation immediately. I’d like the new background to start sliding across on the next loop of the background. In an ideal world it would be almost like a queue, where it keeps looping one background until I tell it to run one pass of the transition background before beginning the looping animation of the new biome background. I’ve tried this a few different ways, and chatGPT is not very helpful either. Any suggestions/examples of accomplishing something similar, or know how I might go about it?

Two choices that immediately come to mind:

  • create a single frame of art that spans from one to the other and insert that, then start using the new biome.

OR

  • overlap one frame of the two biomes, make sure of the sorting to keep the last one in front, and then apply alpha based on where you are going across it to crossfade from one to the next.

I’m currently attempting the first, but I suppose I’m going to need to do it as a separate game object, and not by changing the background sprite to the transition and then to the new one. So the transition will have to be a separate GameObject while the main background is being changed
I was hoping to avoid that and do it all within one gameobject, but that is currently where its looking like I’ll have to go. Currently just trying to figure out how to get it to match the edges perfetly so the transition piece starts moving across right at the end of the last loop of background 1