Search Unity

Varying scale for prefab that is spawned 1k times in the scene

Discussion in 'Multiplayer' started by Bluemond, Mar 10, 2017.

  1. Bluemond

    Bluemond

    Joined:
    Mar 6, 2017
    Posts:
    7
    Hello, I have looked all I can but cannot figure out how to efficiently network a pickup that is spawned 1k times on the server as randomly generated scales and position so that the size registers for the client.

    Snippets

    As you can see, the host has the varying scales for the prefab though the client does not know that the scale has been modified from the original prefab. The prefab is registered using the drag and drop method on the network manager though I did try registering it in my code immediately following the scale modification. This resulted in the client freezing for a good couple minutes on connect and then spitting out 1k separate errors of apparently not being able to load the network object.

    Any insight as to how to accomplish this would be appreciated.
     
  2. Bluemond

    Bluemond

    Joined:
    Mar 6, 2017
    Posts:
    7
    Thanks for the help guys. I see that you're all just a bunch of egotistical maniacs that find the easy questions to answer so that you can look like you actually know something about unity. I figured it out anyway..