This is a prefab that contains a pooler and the manager of the tiles. This game object is the core of the asset and just by dragging it to the scene you can start working with it.
The main script of the asset is Endless 2D here is where the manager of the tiles lies.
- Available Sprites is the first available parameter. This array contains the sprites that every tile will be using. Every sprite that you add to the array will appear in the final terrain.
- Move Plane is the two axis where your tiles will move. You can change it before play mode and see how the grid changes its position
- N Columns and N Rows are the parameters that control the amount of tiles the grid will have. Change these parameters in order to add or decrease their amount.
- Tile size represents the size of each individual tile. When the value is 1, each tile has the size of an Unity unit.
- Movement speed is the velocity the Tiles move, keep in mind that if it is a negative number the tiles will change direction. This parameter can change during play mode.
- Tile direction is the direction all the tiles will move to.
For more insight, contact us at: [email protected]