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

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Runtime.InteropServices;
  4. using UnityEngine;
  5. public class URLReader : MonoBehaviour
  6. {
  7. [DllImport("__Internal")]
  8. private static extern string GetURLFromPage();
  9. [DllImport("__Internal")]
  10. private static extern string GetQueryParam(string paramId);
  11. public string ReadQueryParam(string paramId)
  12. {
  13. return GetQueryParam(paramId);
  14. }
  15. public string ReadURL()
  16. {
  17. return GetURLFromPage();
  18. }
  19. }