Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    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.