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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How can I get a list of all the clients in the scene and access their objects?

Discussion in 'Multiplayer' started by tempworkacc1, Sep 9, 2015.

  1. tempworkacc1

    tempworkacc1

    Joined:
    Sep 9, 2015
    Posts:
    4
    I need to be able to change the client's transform via the server.
    I'm using the new UNET unity 5.3.
     
  2. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    465
    Do you mean, you want to have the server set the player object transforms, with Unity 5.2? If so, you want to put a NetworkTransform on your player object prefabs, and set the transform of your spawned player objects on your server.
     
  3. tempworkacc1

    tempworkacc1

    Joined:
    Sep 9, 2015
    Posts:
    4
    Thanks I already solved it by using rpc funcitons to set the location of the client. ( I don't need it to snap every frame, only when I order it to ).