You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
515 B

using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
public class URLReader : MonoBehaviour
{
[DllImport("__Internal")]
private static extern string GetURLFromPage();
[DllImport("__Internal")]
private static extern string GetQueryParam(string paramId);
public string ReadQueryParam(string paramId)
{
return GetQueryParam(paramId);
}
public string ReadURL()
{
return GetURLFromPage();
}
}