Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How can I spawn prefabs in a linear order from a list and not randomly?

Discussion in 'Prefabs' started by VR_Rookie, Jul 5, 2022.

  1. VR_Rookie

    VR_Rookie

    Joined:
    Nov 24, 2012
    Posts:
    35
    Hi,

    I'm playing around with a rhythm game concept (Guitar Hero, Beat Saber, etc). These games have fixed linear level designs, meaning their prefabs spawn at the same location at the same time to match their level design and to the music.

    I'm new to C# and I know to spawn prefabs randomly, but I have no idea how I could plan out a 3 min game level with predefined spawning prefabs...

    Any help and advice is very much appreciated!
     
  2. sheepgage

    sheepgage

    Joined:
    Nov 7, 2016
    Posts:
    3