Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

How to load a website or URL link.

Discussion in 'Project Tiny' started by insolegames, Mar 27, 2019.

  1. insolegames

    insolegames

    Joined:
    Nov 6, 2018
    Posts:
    2
    Hi just wanting to know how to load a website link in project tiny aka:

    Code (CSharp):
    1. Application.OpenURL("www.somewebsite.com");
     
    Lexudau likes this.
  2. Pakor

    Pakor

    Joined:
    Feb 2, 2017
    Posts:
    32
    You can call this function "window.open(SiteURL, "", "", false);" when for example a button is pressed. This will open a new tab on your browser.
     
  3. insolegames

    insolegames

    Joined:
    Nov 6, 2018
    Posts:
    2
    Thanks heaps
     
  4. dohyung97022

    dohyung97022

    Joined:
    Jul 25, 2018
    Posts:
    3
    Do you guys know how to do this in the c# version of tiny?
     
  5. yossi_horowitz_artie

    yossi_horowitz_artie

    Joined:
    Jan 30, 2019
    Posts:
    87
    There may be a better way, but you can always do it in JavaScript and then call to JavaScript from C#. One of the sample projects shows how to make JavaScript calls.
     
  6. dohyung97022

    dohyung97022

    Joined:
    Jul 25, 2018
    Posts:
    3
    Thanks mate, will go check that out!
     
  7. Seaqqull

    Seaqqull

    Joined:
    Aug 3, 2018
    Posts:
    24
    Does anyone found the solution for c# type of project?
     
  8. Maras

    Maras

    Joined:
    Dec 11, 2012
    Posts:
    131