Hello,
In my game, I would like to put a logo of my website and put a link for players to go to my website, in a new window. I was told that a code for that exist but everything I tryed so far failled. Could somebody help me please?
Also, I would like to protect my game for it to work only on my site, so no stealing. Is there a way to do that?
Best regards,
How about a button with the new ui that calls a script with a public function that will call this.
For making sure that it will only work on your side, you can read out Application.absoluteURL , that will give you the url / location of the webplayer file. Then you can check if it’s your website and if not show a error message with a link to your page.
Hi fffMalzbier,
Thank you for your reply. I went and had a look at the two links you posted and was able to partly understand. The problem is that I don’t know code at all. Could you explain to me where and how to implement the codes please? This is my first game so I’m still learning a lot.
Also, would a new window open in the browser simply with the code from the first link?
Best regards,
Even if i wrote you the code you would need , it would not help you far.
Please take a look at the unity learning site, there are a lot of useful scripting tutorials that will help you get into scripting inside of unity.
http://unity3d.com/learn/tutorials/topics/scripting
Without any knowledge of code you will have a hard time programming a game.
If you have a coded something and you are not sure if it’s correct or it throwing some weird errors, posted it here, and then we can take a look at it.
If Application.OpenURl is called unity will open the link with the system standard browser. If the browser is not open it will open a new wind, if its open normally the browser do open an new tab for the address.