Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

The object created by the client is not visible on the server.

Discussion in 'Multiplayer' started by Sranik228, Jun 28, 2022.

  1. Sranik228

    Sranik228

    Joined:
    Jun 28, 2022
    Posts:
    3
    The object created by the client is not visible on the server.
    Im use server.


    Code (CSharp):
    1. void CreateTraces()
    2.     {
    3.  
    4.         if(on_run == true)
    5.         {
    6.  
    7.             GameObject tracks = Instantiate(traces, transform.position, rot_sprite.rotation);
    8.             NetworkServer.Spawn(tracks, connectionToClient);
    9.         }
    10.  
    11.         Invoke("CreateTraces", 0.6f);
    12.  
    13.     }
     
    Last edited: Jun 28, 2022