Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Manage profiles

Discussion in 'Authentication' started by EuclidGaming, Nov 14, 2023.

  1. EuclidGaming

    EuclidGaming

    Joined:
    Nov 9, 2023
    Posts:
    2
    I am a beginner in game Dev.
    The set profile is not working!! or am i missing something!

    Any help would be greatly appreciated. Thanks!! Screenshot 2023-11-14 153335.png Screenshot 2023-11-14 153636.png Screenshot 2023-11-14 153656.png
     
  2. erickb_unity

    erickb_unity

    Unity Technologies

    Joined:
    Sep 1, 2021
    Posts:
    90
    The logic looks good and should work.
    I can see from your logs that you are signing in which is not part of your code example.
    Setting the profile here won't work if you have already initialized.

    Can you make sure that the initialize function is only called once in your project ?

    Quick note that you can also modify the profile by setting the value using AuthenticationService.Instance.Profile.
     
  3. EuclidGaming

    EuclidGaming

    Joined:
    Nov 9, 2023
    Posts:
    2
    i have tried to set profile before initialization, after initialization, and directly using Authentication.Instance.Profile, tried passing a string and a var value, but no matter what i try, the only value that gets returned when i debug the current profile is the "default" value.
    It would be helpful and greatly appreciated if you can show me how to set profile using an example case.

    Thanks!
     
  4. JeriFirkins

    JeriFirkins

    Joined:
    Dec 11, 2023
    Posts:
    1
    These steps always help me, What I simply do For profile issues, is double-check settings, save changes, and restart.