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

2 or more of 3D GameObjects on scene works not properly

Discussion in 'Scripting' started by xarapuchatok, Dec 30, 2019.

  1. xarapuchatok

    xarapuchatok

    Joined:
    Dec 27, 2019
    Posts:
    11
    I have 3D model of tank, witch consists of parts:
    tank -------
    void
    base
    turret
    barrel1
    flare1
    When I make GameObject bullet I have references on "turret" and "flare1" gameObject and it works fine! But when I create a Prefab and put it on scene 3 copies, the bullets not appeared or mayby appeared only in one copy! I think It conflict with names! How can I make all copys to fire?
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,748
    We can't help without seeing your code. (Use [code ]code tags[/code])
     
  3. xarapuchatok

    xarapuchatok

    Joined:
    Dec 27, 2019
    Posts:
    11
    I used public variable on GameObject , so that was collision(( Thanks everyone who replied! Happy New Year and mary cristmas ))