Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Instaniate Spawn not working

Discussion in 'Multiplayer' started by SadisticLotus, Nov 8, 2022.

  1. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    25
    upload_2022-11-8_19-42-1.png
    Hey guys,
    The code provided in the picture get triggerd 5 times, i know this cause of debugging.
    For some reason it only spawns one enemie tho and im not sure why cause it was working before.
    enemiesToSpawn is an scriptable object and the enemyObject is the prefab the prefab is loaded into the networkmanager.

    I get no errors whatsoever.
     
  2. SadisticLotus

    SadisticLotus

    Joined:
    Oct 8, 2019
    Posts:
    25
    woeps, seems like it tried to dupplicate a class it wasn't supposed too!
    After this it working again....