Hi there,
There’s a function GetPayloadAllocationAsPlainText();
And another GetPayloadAllocationFromJsonAs();
What data does this return? I can’t find any mention in the docs.
Thanks!
Hi there,
There’s a function GetPayloadAllocationAsPlainText();
And another GetPayloadAllocationFromJsonAs();
What data does this return? I can’t find any mention in the docs.
Thanks!
For anyone else who wants to know apparently it returns this structure
[Serializable]
public class PayloadAllocation {
public Unity.Services.Matchmaker.Models.MatchProperties MatchProperties;
public string GeneratorName;
public string QueueName;
public string PoolName;
public string EnvironmentId;
public string BackfillTicketId;
public string MatchId;
public string PoolId;
}
Which you can get with
PayloadAllocation payloadAllocation = await MultiplayService.Instance.GetPayloadAllocationFromJsonAs<PayloadAllocation>();
Just sharing an experience with that line of code that Codemonkey shared. I had Multiplay 1.0.3 installed and I was getting Failed to Deserialize error on the server. I upgraded my Multiplay version to 1.0.5 and the problem went away. So just sharing in case anyone else hits that error.