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 TOES2 · Feb 15, 2015 at 10:07 AM · html5

Show HTML5 page on Android

I need to display a HTML5 web page on Android through Unity3D. I realize it is tricky to render it into a texture on mobile at this stage, but how about using a plugin to display it in a window on top of Unity 3D?

Basically what I want to achieve is to have the Unity3D game launch an HTML5 webpage on Android, and later close it and return to Unity3D. I suppose it is possible when using a plugin, but I am not sure how to do that.

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
0

Answer by ActionAbbas · Feb 15, 2015 at 06:22 PM

Hi batmobile,

From my experiences you can just have a button which opens that link (see code) and if the user taps the back key on Android it returns to the unity app.

 if (GUILayout.Button("More Games"))
         {
             Application.OpenURL("http://www.actionabbas.com");
         }

Hope this helps

Cheers Abbas

Comment
Add comment · Show 4 · 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 TOES2 · Feb 16, 2015 at 09:32 AM 0
Share

Thank you, this is useful info. However, a couple of problems: It would take the user to the browser, and I need a full screen solution so that it appears as if the HT$$anonymous$$L5 page is still running within the app. Also, in my case I need the launching app to control when to leave the HT$$anonymous$$L5 page, I cannot rely on a back button being pressed manually.

I am thinking of some native code plugin that launches a window over Unity 3D window, with a native HT$$anonymous$$L5 renderer. But I do not know how to approach it.

avatar image ActionAbbas · Feb 16, 2015 at 07:02 PM 0
Share

I'm not sure if there is any plugin for this, I think you may need to create your own one.

avatar image TOES2 · Feb 19, 2015 at 10:47 AM 0
Share

Yes, I will make my own plugin. Although, I am hoping to get some help here how to start and wether it is feasible at all.

avatar image ActionAbbas · Feb 19, 2015 at 06:40 PM 0
Share

I can't help you there. I've no experience with creating plugins but I think this may help to start with http://forum.unity3d.com/threads/unity-plugin-development.124139/

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

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

WebGL - Module.doNotCaptureKeyboard: true or Module.keyboardListeningElement: ... NOT WORKING ANYMORE 0 Answers

Can I display an Unity WebGL Game in Unity Editor ? 1 Answer

facebook instant game is not loading in messenger. 0 Answers

Can the unity browser client be manipulated dynamically using html5? 0 Answers

Using web players in different browsers 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