You could store the new URL into the Playerprefs and load from it:
If you want to load the image right after change it would be a good to idea not to load it right after the string changed, instead wait until some time has been elapsed ot the User hit a save Button or the Enter key:
on the same page i see the textarea , i change the url in the field and press save…now any1 who opens this page http://abc.com/webplayer.html sees the latest url in the textarea…
Note: i just wana load the image from the saved url in the text area from the webplayer, dont think on other lines that any one can change the url or so, coz this is just for learning the “save” part
i am confused what do u mean by new URL and PlayerPref coz this is not for 1 person, amy1 who opens the url will see the same latest url image… i hope i am very clear
You will first need for Unity to communicate with the outside web page. documentation for this
Then it is all in the PHP and AJAX support on the page to get and send data. You can also use AJAX and the that same stuff to keep it current on the other side.
ohhh u mean i need it to join with php … is there any example of unity/ajax or unity/php available ?? just to know as i dont wana use any db like mysql for so small data where will it be stored, xml ? or like we unity must be saving highscores in games…i can also save it like dat n for that kind of saving do i still need php ?
You can store the data (url) in any format you like, but you will need to store it on the server and most likely communicate with the server from inside Unity (using www class) and a server side language like PHP, or ASP/.Net etc…
Unity’s WWW class can GET and POST data to a web page, so one the user has updated the URL, call a function that upload the new URL data to the server via WWW and then have your server side code store it however you like.
You can also grab the updated URL the same way (via WWW) from inside Unity.
It’s a very common practice to work this way for loading/saving scores or loading/saving player details etc.