Quantcast
Viewing latest article 1
Browse Latest Browse All 14

trying to prevent unity web build to run if it is not located at the certain domain

here is the code i have:

Application.ExternalEval("if(document.location.host != 'google.com') { document.location='http://unity.com'; }");

so this basically means that if web player is not located at google.com domain then it should open unity.com website...

that is not what is going on when i upload it on my site. i am using default html that is made when building web player. does it need to be changed somehow.

what is your experience with this? thank you!


Viewing latest article 1
Browse Latest Browse All 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>