27 Debug.Log($
"Parsing URL Arguments {url}");
28 string urlData = url.Substring(url.IndexOf(
'?') + 1);
30 if (urlData.Length <= 0)
32 Debug.Log(
"No ? found in the url.");
36 string[] dataArray = urlData.Split(
'&');
38 if (dataArray.Length <= 0)
40 Debug.Log(
"No arguments found on the url.");
44 Dictionary<string, string> parameters =
new Dictionary<string, string>();
46 foreach (
string dataElement
in dataArray)
48 Debug.Log($
"Parsing: {dataElement}");
49 string[] dataParts = dataElement.Split(
'=', 2);
51 if (dataParts.Length <= 1)
53 Debug.Log($
"No named argument.");
57 Debug.Log($
"Found argument {dataParts[0]} - {dataParts[1]}");
58 parameters.Add(dataParts[0], dataParts[1]);