microsoft / gdk-unity-package

The Unity package for PC GDK developers.
Other
51 stars 18 forks source link

XGameUiShowMultiplayerActivityGameInviteAsync usage #139

Open qjonathan opened 4 months ago

qjonathan commented 4 months ago

Hi, in the latest version XGameUiShowMultiplayerActivityGameInviteAsync is finally exposed but how are we supposed to use it?

It takes an XAsyncBlock but I cannot figure how I am supposed to create one. Pretty much anything in the SDK uses XAsyncBlockPtr and not XAsyncBlock. So I am a bit confused how am I supposed to use that function.

at first glance AsyncHelpers.WrapAsyncBlock looked interesting but there is no way to access the underlying XAsyncBlock. Not only that They are not part of the same Assembly XGamingRuntime.XAsyncBlock seems to conflict with XGamingRuntime.Interopt.XAsyncBlock.

I will try to work around by modifying the plugin but it would be nice if it could be done by more knowledgeable people than me.

Thank you for your help

edwarduwms commented 4 months ago

Thanks,

We will provide an example on how to use the new introduced XAsyncBlock for XGameUiShowMultiplayerActivityGameInviteAsync in a near upcoming release.