I am trying to write the SetProfilePolicy function but i get the error: Cannot implicitly convert type 'PlayFab.ProfilesModels.EntityPermissionStatement' to 'System.Collections.Generic.List'
Here is my function. May someone tell me what is wrong? Thank you.
PlayFabProfilesAPI.SetProfilePolicy(
new SetEntityProfilePolicyRequest()
{
Statements = new EntityPermissionStatement(){
Action = "Read",
Effect= EffectType.Allow
},
Entity = new EntityKey()
{
Id = entityId,
Type = entityType
}
},
(result) =>
{
},
(error) =>
{
Debug.LogError(error.ErrorMessage);
}
);