Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

assigning client authority over a NetworkTransform & peer to peer possiblities

Discussion in 'Multiplayer' started by robochase, Jul 13, 2016.

  1. robochase

    robochase

    Joined:
    Mar 1, 2014
    Posts:
    244
    if i assign authority of an object over to a player with AssignClientAuthority, what does this actually mean in terms of message flow for a NetworkTransform?

    does that client send positional data to the server who then relays that info to the other clients? or does that client just send that positional data directly to the other clients himself?

    basically i'm looking for a peer-to-peer setup with unet and i'm wondering if that's possible. if it's not possible with the High Level API, is it possible to do peer-to-peer networking if I DIY with the NetworkTransport layer? Is it possible to mix & match the High Level API and the low level API?

    for example, it would be convenient to use the high level API for a lot of stuff, but for certain aspects of the netcode, it's desirable to transfer authority over to a client and have all related information sent to the other clients as quickly as possible, without a middle man.
     
  2. dberroa

    dberroa

    Joined:
    Dec 16, 2012
    Posts:
    146
    I'm interested in knowing this as well. Tagging so I can come back later.