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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Gameobject not spawning where it should?

Discussion in '2D' started by admor2, Dec 13, 2015.

  1. admor2

    admor2

    Joined:
    Jan 15, 2013
    Posts:
    3
    Right so im trying to create some floating text for my 2d clicker game and followed a fairly simple tutorial for it. However when my gameobjects spawn they do not spawn at the location of the prefab. here is the code for it.



    and here is the unity scene with the game object spawning in some far way galaxy.

    Note that the gameobjects are also not being parented to "Enemy" as they should...




    Any help is appreciated thanks.
     
  2. admor2

    admor2

    Joined:
    Jan 15, 2013
    Posts:
    3
    Anybody? need more info? what? please.
     
  3. FranticThumbs

    FranticThumbs

    Joined:
    Mar 5, 2015
    Posts:
    51
    when you made the changes to the original game object, did you hit 'apply', so the prefab updates with those changes? Failing that, have you tried this tutorial?