Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Instantiated prefabs share the same transform as the previous one instantiated.

Discussion in 'Prefabs' started by omaralrafei, Jan 24, 2021.

  1. omaralrafei

    omaralrafei

    Joined:
    Jan 13, 2021
    Posts:
    1
    So i am making an endless runner game that has an enemy that spawns on a specific bridge in front of you and it runs at you. The spawning should happen at the beginning of the bridge associated with the enemy prefab. The problem is that the transforms of every instantiated prefab is the same as the last one spawned so for me to space them correctly is inducing some nightmares. I just need a way to reference the original prefab everytime so that my math works out or any kind of solution because i've been at it for 2 days with no solution. Thanks :)