I created a simple Register User UI in PlayFab, and I am recieving an error... I understand what the issue is, but I am new to PlayFabSDK so I am unsure how to approach this problem. I've watched many tutorials, and the program is very simple and understandable, however they don't seem to get this error. I will post my code and error below.
Code:
public void onRegister(){ var request = new RegisterPlayFabUserRequest { Email = emailInput.text, Password = passwordInput.text, RequireBothUsernameAndEmail = false }; PlayFabClientAPI.RegisterPlayFabUser(request, OnRegisterSuccess, OnError); } void OnRegisterSuccess(RegisterPlayFabUserResult result){ registerText.text = "Register Success"; } void OnError(PlayFabError error){ registerText.text = "Error!"; }
Error:
IndexOutOfRangeException: Index was outside the bounds of the array.