Opening webpage from Unity 3D

Advertisemen

Hello guys, if you guys are looking for how to connect to webpage from unity this really short tutorial is for you.

I am not gonna explain anything here because it is just three lines of code -

if(GUI.Button(new Rect(Screen.width/9fScreen.width/2.1f
                   Screen.width/5Screen.width/15), "Facebook"))
{

        
Application.OpenURL("https://www.facebook.com/Aarlangdi");


 }

Just copy and paste and change the url then you are good to go.

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D