Some downsides are that its Mac-only, requires Unity Pro, and wont work in a web player.My idea is to load the google map window inside unity3D so user can zoom in and out of the map and search too.You can create a plugin (desktop andor iPhone only) and use something like WebKit, but that wont work for web-based applications.In fact, forum user bliprob has done that already (non-iPhone, Mac-only): HtmlTexturePlugin But again, that is a plugin and those are not supported in the web player.
Jaap Kreijkamp has publish a solution for Unity on his Webside ShowWebpage: You need a Webserver with PHP. There you ran a PHP Script to grab a Screenshot from the Webpage you want voila you put then the returned jpg into a Texture via the Script. I was thinking that perhaps Flash might have some functions for saving a webpage as an image, but it didnt cross my mind that PHP could be used to do the job. To what i can see this still loads only image into the Unity but i actually want to load a google map so i can actually scroll it or drag it within the GUI which means is in real time. It can compile when I call it from a script, but when I run the game It crashes:S. Start ( ) 0x00026 in D: Usersenrodri86DocumentsItara OnlineAssetsAwesomiumDotNetTest. Start ( ) 0x00020 in D: Usersenrodri86DocumentsItara OnlineAssetsAwesomiumDotNetTest. There may be some solutions using another program that runs a script minimized and saves the page to a.jpg, if a process exists for that in windows it could be run from a command after the.exe: system.diagnostics.switch ProcessStartInfo theProcess new ProcessStartInfo(filename.exe); theProcess.WindowStyle ProcessWindowStyle.Minimized; Process.Start(theProcess). Other names or brands are trademarks of their respective owners.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |