question

jlanis86 avatar image
jlanis86 asked

Retrieve the Game Center player ID in Unity?

I want to use LoginWithGameCenterRequest and I'm trying to access the GC id, but the API to access that info does appear to be exposed in Unity, nor in PlayFab. So the only solution here is to write my own native plugin, correct?

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

·
jlanis86 avatar image
jlanis86 answered

Nevermind - I'm an idiot. It looks like Social.localUser.id is what I need.

10 |1200

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

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.