string to CloudRegionCode

Hey guys, is there any way to convert string to CloudRegionCode?


  • JohnTubeJohnTube mod
    edited November 2019
    Hi @Angel,

    May I know why do you need this?
    Maybe we could suggest something better.

    Otherwise, I got this from stackoverflow answer that showed up as first result on Google.
    CloudRegionCode cloudRegionCode = (CloudRegionCode) Enum.Parse(typeof(CloudRegionCode), cloudRegionString.Trim(), true);
  • Hi @JohnTube , i am working on new update for my game, in which players can create room directly by writing the room settings in the url , for example so on , thank you for the code, that's was exactly what i needed.
Sign In or Register to comment.