Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by James 5 · Dec 29, 2010 at 04:01 PM · wwwdatabasepathaccessrelative

Is it possible to open a web page inside Unity?

Hi I was thinking of building a cut down version (as a test) of my website with Guis using Unity IOS (indie). I like the potential of exporting it out to multiple platforms (looking at getting IOS & Android Pro) and the potential to then be able to do more things with it in the future that a normal site could not on iDevices. I was wondering if a Gui window or some kind of frame could access a specific part of a page on my site? The only thing I could find was Application.GetURl but that opens safari on the iPhone. Is this possible? Thanks In Advance

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ejlersen · Dec 29, 2010 at 06:46 PM 0
Share

You want to use a GUI window in Unity to show your webpage content? If so, then you probably need to create a sort of parser to do this. To get the content from the page, hm, you could probably create a javascript on the page to get the content, but thats a wild guess. Webprogram$$anonymous$$g is really not my area of expertise :)

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by yoyo · Dec 29, 2010 at 06:56 PM

The WWW class can retrieve the contents of a web page, but you will still need a way to parse and render it. There's also the System.Web namespace, which appears to exist in Mono (I can put "using System.Web;" in a script) but I haven't tried to do anything with it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1
Best Answer

Answer by burnumd · Dec 29, 2010 at 06:58 PM

See this question and answer. It describes pulling down HTML content (which would work the same in iOS, standalone and webplayer). You still need to parse and render the content yourself, but it works fine for things like RSS feeds, etc. If you specifically want bloggy-type content, there's already an RSS parser available.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image James 5 · Dec 30, 2010 at 10:39 AM 0
Share

That's fantastic everyone! Thanks a lot! Already pulled a pic off the net onto a cube so great start!

avatar image burnumd · Dec 30, 2010 at 03:49 PM 0
Share

Yeah, if you just want to pull images and stuff, WWW is ideal. You can also communicate with servers via PHP (or your preferred CGI language) to get dynamic data.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

www php send data to mysql 2 Answers

how to read a Microsoft access database in unity 3d 0 Answers

How can I connect the database and catch a value by Access 1 Answer

WWW database callback 1 Answer

How to make a game securised with highscore in database 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges