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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    883
    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:
    148
    Good suggestion, thank you! I added a task to our backlog.
     
unityunity