Search Unity

How to get network message timestamps?

Discussion in 'Multiplayer' started by Piratenaapje, Jun 13, 2015.

  1. Piratenaapje

    Piratenaapje

    Joined:
    Jun 13, 2015
    Posts:
    2
    In 5.1, there does not seem to be a way to retreive the network timestamp of a Remote Action or Network Message. I was planning on using this to write my own interpolation (since Sync Transform in the Network Transform script does not seem to have functioning interpolation yet).

    Am I missing something, or is there really not a way to retrieve this info?
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    By looking at some of the built-in network messages, it doesn't look like this information is stored anywhere...
     
  3. Piratenaapje

    Piratenaapje

    Joined:
    Jun 13, 2015
    Posts:
    2
    Will this be coming in the future? Or should I switch to another way of networking like Photon?
     
  4. Necromantic

    Necromantic

    Joined:
    Feb 11, 2013
    Posts:
    116
    You could just add a timestamp to the message structure manually.
     
  5. aabramychev

    aabramychev

    Unity Technologies

    Joined:
    Jul 17, 2012
    Posts:
    574