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

matchRequest.matchAttributes not populating

Discussion in 'Multiplayer' started by Capn_Andy, Sep 30, 2015.

  1. Capn_Andy

    Capn_Andy

    Joined:
    Nov 20, 2013
    Posts:
    80
    Heya, I'm trying to do some matchmaking setup. Here's my CreateMatchRequest, which all seems to work fine:

    Code (CSharp):
    1.         CreateMatchRequest create = new CreateMatchRequest();
    2.         create.name = SystemInfo.deviceUniqueIdentifier;
    3.         create.size = maxPerRoom;
    4.         create.advertise = true;
    5.         create.matchAttributes = new Dictionary<string, long>();
    6.         create.matchAttributes.Add("version", networkingVersion);
    7.         create.password = string.Empty;
    8.         matchMaker.CreateMatch(create, OnMatchCreate);
    But on another computer, OnMatchListResponse, when I inspect the MatchDesc, the .matchAttributes.Count is always 0.

    Am I doing this correctly?
     
  2. Capn_Andy

    Capn_Andy

    Joined:
    Nov 20, 2013
    Posts:
    80
    Bump, not working in 5.2.1p3 either.
     
  3. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    Hi Capn_Andy,
    You're correct. It's there in the request contract for future compatibility but is not yet functional.