New Guy needing some advice

So i am working on a idea i have that involves basically a infinite track type scenario, similar to temple run or agent dash. So I was thinking about how to do this and I have an idea of sorts but I wanted to run it by you guys to see if im a total moron or not =) Basically i was thinking I could design track segments manually, make those as prefabs, then somehow ( not really even sure on this one ) randomly assign those together as things go along and destroy them as soon as they are out of sight.

Exactly how bad is my idea? lol

Phil

that’s how you want to do it, but don’t destroy, you’ll get lag. Turn them off and on.

Yes your idea is basically correct, but as nocanwin said you don’t want to create/destroy objects as that can cause slowdowns with garbage collection. You want to essentially have a pool of level segments you can connect together and turn on/off.

Here is a great example of how someone did it in Unity (check out his youtube video showing how they built it): http://forum.unity3d.com/threads/138281-An-Approach-to-Dynamic-Level-Generation

ur idea is not bad but may take time…