Hello, I make a 2D Infinite runner. For now i make a parallaxing script for my backgrounds, yes they scrolling, but they are not infinite. So, what I need to do, that my backgrounds just will repeat every time? P.S. Sorry for bad English
If the background is one texture, then change in the texture importer from Clamp to Wrap, so that it will wrap around. Then instead of scrolling the camera past the texture, attach the textured background object to the camera (child of) so that it is always in front of it, then instead modify the background’s material’s texture offset values so that it scrolls the texture within
the geometry, to simulate scrolling. It will wrap around.
2 Likes