Hi,
I want to make a background for a 2d game, I want it to be tiled all across the game, the camera is moving… I have been thinking about it for a while but I didn’t find anything, any help will be appreciated
Hi,
I want to make a background for a 2d game, I want it to be tiled all across the game, the camera is moving… I have been thinking about it for a while but I didn’t find anything, any help will be appreciated
I wanted to make you aware of an alternate solution to tiling: animating the material offset. You can make your background a child of the camera and rotate the material offset to match the camera movement to simulate a moving background. No messy moving of planes.
You use Material.SetTextureOffset() to change the offset over time. If you look at the script reference, there is a simple example that animates it over time. You would change the offset based on the position of the camera.