I want to instantiate a prefab in a server and send it to the clients

hi im developing a game and i want to create a prefab in the server and send the exact same prefab to the clients and spawn it in a specific location for all the clients, how can i write this in c# code?


  • tleylan
    tleylan ✭✭

    Hi @ziyad1160 I'm probably not going to be able to help much but let me ask, why? It sounds like you want to serialize an arbitrary prefab and transmit it to each client.

    Could they exist on each client as a ScriptableObject in Resources and you just spawn them as needed?