Last active
August 29, 2015 14:21
-
-
Save grimmdev/7c57766b56a255cde6f3 to your computer and use it in GitHub Desktop.
Server Side Scripting (JS Only)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('Loaded from web baby!'); | |
// put this on your server host, preferably in a publically accessable location to which it can be loaded, then add it to the script. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma strict | |
var url = "url to script"; | |
function Start () { | |
// Start a download of the given URL | |
var www : WWW = new WWW (url); | |
// Wait for download to complete | |
yield www; | |
// check and eval the script | |
Debug.Log(www.text); | |
eval(www.text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment