How do i make my 2d ground endless (generate)

How do i make my 2d ground endless (generate)

Using the Instantiate function will provide you with more options for creating infinite terrain, however be aware that if you’re making randomly generated terrain similar to minecraft or terraria, this will require extensive knowledge of math and perlin noise.

Here’s an example

// Create the object reference so you can modify the instantiated object after creation.
GameObject prefab; // <--- This is your object prefab you want to instantiate.
GameObject tilePrefab;
// actually instantiate the object
tilePrefab = Instantiate(prefab.gameObject, new Vector3(i * 2.0f, 0, 0), Quaternion.identity) as GameObject;
// modify the transform position... or
tilePrefab.transform.position = transform.position;
// set the name... you have direct access to the object. = "SomeName";

Providing more details in your post of exactly what you’re trying to achieve will help others help you. Nonetheless, here are some links to get you started.

Have Fun!