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

GetAckBufferCount How to use it?

Discussion in 'Multiplayer' started by Leoo, Sep 14, 2017.

  1. Leoo

    Leoo

    Joined:
    May 13, 2013
    Posts:
    96
    Hey!

    Am trying to check how many msgs are in queue to be sent before sending a big fragmented message, and it seems that no matter what i do, GetAckBufferCount always returns 0.

    Is this a known issue? Is there a workaround?

    Thanks!
     
  2. TwoTen

    TwoTen

    Joined:
    May 25, 2016
    Posts:
    1,168
    The ackBuffer is just a buffer for the acknowledgement messages. If you send a reliable message and then check the buffer it should return > 0
     
    Leoo likes this.
  3. Leoo

    Leoo

    Joined:
    May 13, 2013
    Posts:
    96
    Am pretty sure i know how the HLAPI core works, the actual question is how AckBuffer should be used when trying to use a Reliable fragmented channel. Buffer keeps saying 0. Any1 uses this and can you show an example? Ty!
     
    Last edited: Sep 17, 2017