I have a Unity project to help me understand how to design with Entities in general and Group Entities more specifically. My code does nothing other than exercise the API via the Unity SDK and a game scene UI.
This code works fine to create the group:
public void CreateGroupButton() { PlayFab.GroupsModels.CreateGroupRequest _request = new PlayFab.GroupsModels.CreateGroupRequest { GroupName = EntityIdInputField.text }; PlayFabGroupsAPI.CreateGroup(_request, ProcessCreateGroup, ProcessError); }
When I try to delete the group with this code:
public void DeleteGroupButton() { Debug.Log("Deleting: " + EntityIdInputField.text); PlayFab.GroupsModels.DeleteGroupRequest _request = new PlayFab.GroupsModels.DeleteGroupRequest { Group = new PlayFab.GroupsModels.EntityKey { Id = EntityIdInputField.text } }; PlayFabGroupsAPI.DeleteGroup(_request, null, ProcessError); }
The ProcessError is called and the PlyFabeError.ErrorMessage is "No group profile found at [EntityIdInputField.text]"
I am getting the same error message when I try to get an entity token for the group with this code:
public void GetEntityTokenButton() { GetEntityTokenRequest _request = new GetEntityTokenRequest(); _request.Entity = new PlayFab.AuthenticationModels.EntityKey { Id = EntityIdInputField.text, Type = "group" }; PlayFabAuthenticationAPI.GetEntityToken(_request, ProcessGetEntityTokenSuccess, ProcessError); }
I have been reading a lot and I am just not understanding what the error message is trying to tell me.