Search Unity

Where to put game objects?

Discussion in '2D' started by shwick, Jul 30, 2015.

  1. shwick

    shwick

    Joined:
    Jul 10, 2015
    Posts:
    31
    So I have some game objects I clone at runtime. Problem is the original game objects are just hanging around at runtime because I don't know where to store them or how to hide them, or if I should.

    I'm not even sure if hiding them or setting to invisible is possible because they have colliders so may cause invisible collisions.

    What do you do with default game objects you clone at runtime, but you don't actually want the originals on your screen?
     
  2. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Why would want to do that? If you clone an object, then don't want the original anymore, why not just use the original in the first place?
     
  3. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    At a guess, it sounds like you're not using prefabs, when you should be using prefabs. That's what they're for.

    --Eric
     
    shwick likes this.