- Home /
Real Time Refresh from Web Portal
I am attempting to build a simulation model that access real-time data and uses this data to update game objects. The data is refreshed on the web server every 30 secs. The end goal is to have a web deployed simulation where the objects update their position with the new information and have a display panel that shows key information.
Is this possible?
If possible, is there an accessible resources?
Any thoughts on how to move forward with this project would be greatly appreciated. a. scripting b. game object updating... etc
Unity is a new tool for me. My user level is novice. Just so you know where I stand.
Of course its possible.
You'll likely want some kind of key that represents each object that you're updating.
Have your web service deliver a payload of data for objects that need to be updated using something like JSON.
For each object received which has a public key, update the game object that represents that key's object with the new data.
Repeat every n seconds using technique that @robertbu suggested.
You could use a socket connection for real-time updating, but this seems unnecessary since the server only updates every 30 seconds, as you say.
Your answer
Follow this Question
Related Questions
Browser-side WebPlayer application caching. 2 Answers
What kind of error handling does the WWW class have? 1 Answer
Porting to WebPlayer 0 Answers
Web-project "Session End" 0 Answers
integrate unity with flex web app 1 Answer