question

rmontino avatar image
rmontino asked

Using Party Unity plugin, how does one specify a region for CreateAndJoinNetwork

See title, Thanks in advance.

apissdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

Since CreateAndJoinNetwork doesn’t have a parameter that can be used for region specified, so, you cannot specify a region when you call CreateAndJoinNetwork method. And Party Unity plugin doesn’t provide method to let you specify the region for the network, you may post a feature request for it.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rmontino avatar image rmontino commented ·

How about a workaround? I see PartyCreateNewNetwork below takes a region array as input. Can we supply a region here? Forgive me, my C# is limited. Do you have sample code?

             var invitationIdentifier = dc.Add(new DisposableBuffer(checked(PartyConstants.c_maxInvitationIdentifierStringLength + 1))).IntPtr;

             Interop.PARTY_NETWORK_DESCRIPTOR interopNetworkDescriptor;
             unsafe
             {
                 err = PFPInterop.PartyCreateNewNetwork(
                     handle.InteropHandle,
                     localUser.InteropHandle,
                     &networkConfig,
                     arrayCount.ToUInt32(),
                     regionArray,
                     &inviteConfig,
                     asyncId,
                     out interopNetworkDescriptor,
                     invitationIdentifier);
             }
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.