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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Feature Request Makes NetworkConnection be IEquatable<NetworkConnection >

Discussion in 'Unity Transport' started by Kichang-Kim, Jan 17, 2022.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    977
    Hi. Current struct NetworkConnection is plain struct, so GC has occurred when using it as key of Dictionary.

    It can be simply resolved by implementing IEquatable<T>.
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    342
    Good suggestion, thank you! I added a task to our backlog.