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
0
Question by Michael 12 · Nov 14, 2011 at 01:15 AM · urllaunchpop-upgui-window

Launch Web browser & web site from GUI

is it possible in Unity to say launch a web browser and take someone to a web page URL by clicking on text inside of say a GUI pop Up window? And if so how would that be done?

Comment
Add comment
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

1 Reply

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

Answer by RecChemForbin · Nov 14, 2011 at 04:09 AM

The way I've done this is by using:

 if(GUILayout.Button("Visit Web Site"))
         {
             Application.OpenURL("http://www.yoursite.com");
         }

so I bet by changing the button to :

GUILayout.Box

you can get needed results

Comment
Add comment · Show 5 · 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 syclamoth · Nov 14, 2011 at 04:10 AM 0
Share

No, if you change it to GUILayout.Box it'll no longer be clickable. You need to use a button for this.

avatar image RecChemForbin · Nov 14, 2011 at 04:23 AM 0
Share

you are correct sir! just use the button

avatar image Michael 12 · Nov 14, 2011 at 01:39 PM 0
Share

Thanks guys, but say I have an interactive shop and I want to have a little pop up GUI for each product in the shop and a different web link for each product, is that doable and if so how?

avatar image RecChemForbin · Nov 15, 2011 at 03:07 AM 0
Share

I don't know that you can have pop-up windows for new Unity scenes, but one way you may approach it is to break up each product into a new scene that stays in the same "window", then have the button link to the web site for purchase or whatever your needing which would pop up into a browser window. You can customize your GUI skin to make your buttons appear however you like in the editor and photoshop. there very well may be other ways to approach this that suits you better though

http://unity3d.com/support/resources/assets/built-in-gui-skin

hope that helps a little!

avatar image Michael 12 · Nov 26, 2011 at 04:04 PM 0
Share

Thanks RecChemForbin, I've hered of making a scene load into an existing scene, how is this done and can I do it for multiple produts? I want to put atleast 100 or so products into my first person perspective gift shop and have an information pop up containing a more detailed picture of the product and a web link that is clickable that takes them to the product page online. How can I do this?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Start iOS app from a Unity3d iOS app 1 Answer

Popup window for individual game objects 1 Answer

Pop Up GUI Windows & Screen Lock Cursor Question 1 Answer

Application.OpenURL() Rapid Opening 1 Answer

Which "using directive" to use "Intent" for open url in android ? 1 Answer


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