smartcarrion
started a topic on Sun, 07 December 2014 at 7:10 PM
Does anybody have the friends list working? I'm getting this weird type match bug when i try to retrieve the friends list. I've tried casting it a couple different ways, but maybe there is a Unity SDK bug? here is the error and some example code:
Assets/Scripts/PlayerStatus.cs(54,17): error CS0029: Cannot implicitly convert type System.Collections.Generic.List<PlayFab.ClientModels.FriendInfo>' to
System.Collections.Generic.List<FriendInfo>'
public void UpdateFriendsList(){
if(PlayFabData.AuthKey != null){
GetFriendsListRequest request = new GetFriendsListRequest();
PlayFabClientAPI.GetFriendsList(request, OnGetFriendsList, OnPlayFabError);
}
}
private void OnGetFriendsList(GetFriendsListResult result){
friendList = result.Friends; //this line throws the type conversion error
}