• 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
0
Question by scheletro · Jan 08, 2010 at 12:57 AM · browser

How can I call an URL?

Maybe this is a silly question, but i have like 3 days using Unity, I made a great 3d place, but now i want to call a webpage

I know how to setup a GUI button

function OnGUI () {
    if (GUI.Button (Rect (380,10,150,50), "Visit WEBPAGE")) {
        // what do i have to put here?//
    }
}

Can someone help? is there a way to call a pop up also?

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 Michael La Voie · Jan 08, 2010 at 02:08 AM 1
Share

Are you asking for the html code from the webpage or to open up a web page in a browser or to display a fully rendered webpage inside your unity app?

1 Reply

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

Answer by Ashkan_gc · Jan 08, 2010 at 07:21 AM

if you want to open a URL in your browser use Application.OpenURL:

Application.OpenURL("http://www.example.com");

if you want to get the HTML code of the page use www class. if you want to render the page in your scene you should use some internet service that turns a webpage to a JPEG or PNG image and send it back to you. if you want a full 3D browser in your game vote for this please

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 scheletro · Jan 16, 2010 at 06:12 PM 0
Share

Works incredible, so many thanks, lol

I work with actions script, thats why I find hard to understand these basic scripts

Thanks again!

avatar image sadiq@xstpl.com · Apr 21, 2013 at 07:40 AM 0
Share

Hello Ashkan I want to use full 3d browser in game but your link is not working ... can you send me the correct link.

http://feedback.unity3d.com/pages/15792-unity/suggestions/291587-gui-integrated-html-web-browser

This is incorrect link .

Or please send /update the code here itself

Thanks..

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Is Unity a good fit for an embedded (web) model file browser? 1 Answer

Android : Open the phones web browser 1 Answer

Browser to webplayer communication problem 0 Answers

Capturing sound input with low latency 0 Answers

How to Browse a photo or Open to gallery 3 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