I am trying to make a vent system so if someone was in a group they could open the vent, but I cant figure out how to use the IsMember thing. Can anybody help me?
I am trying to make a vent system so if someone was in a group they could open the vent, but I cant figure out how to use the IsMember thing. Can anybody help me?
Because to know if a player is a member of a group needs some permission to read the group profiles, you need a title level entity token to call Groups - Is Member - REST API (PlayFab Groups) | Microsoft Learn. You can get a title level entity token with Authentication - Get Entity Token - REST API (PlayFab Authentication) | Microsoft Learn. You can also call IsMember API with Azure Function.
I do have the entity token but whenever I go back into unity it says: 'PlayFabClientAPI' does not contain a definition for 'member'. My code is:
string id = result.EntityToken.Entity.Id;
string gid = "FC625A39478873C8";
PlayFabClientAPI.IsMember(id, gid);
This API is a group API, you should use class PlayFabGroupsAPI. BTW, since to get the title level entity token needs the Secret Key, we don't recommend doing it on the client side. You can call IsMember API with Azure Function.
20 People are following this question.