gameObject.name + "', 'SetupOAuthCode', window.location.search)"; if (Application.platform == RuntimePlatform.WebGLPlayer) { Application.ExternalEval(script); } } public void SetupOAuthCode(string url) { Regex regEx = new Regex(@"code=[a-z0-9]+"); var match = regEx.Match(url); if(match.Success) { var keyValue = match.Value.Split('='); loadOAuthCodeStream.OnNext(keyValue[1]); } }