Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

[Unity 5.5b7] iOS & GameCenter error

Discussion in '5.5 Beta' started by Lszt, Oct 13, 2016.

  1. Lszt

    Lszt

    Joined:
    Sep 28, 2015
    Posts:
    38
    I see this in patch note :
    How can I get this error string ? I don't find which method could return this even with the documentation. I was thinking it could be "Authenticate" but in the documentation it seems to return void. I will try with the beta (cause I don't already install it)

    If someone have an idea ?
     
    MrEsquire likes this.
  2. Lszt

    Lszt

    Joined:
    Sep 28, 2015
    Posts:
    38
    I think I found it.
    There is now 2 Authenticate methods :
    public void Authenticate(Action<bool> callback);
    public void Authenticate(Action<bool, string> callback);

    I think the second one is the way to get the error string ? If an Unity engineer could confirm it ?
     
  3. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Yes, you are correct. The online documentation has not yet been updated, but if you install offline docs you can find the documentation of the new overload there. The callback gets an error as the second argument, if the error string is available.