Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 joyjeba28 · Apr 29, 2016 at 11:55 AM · twitterwebpagewebview

How to open a web page(URL) inside a unity game ?

i want this to tweet my player's score from my game itself..i need to open twitter page inside my game..How can i do that ??/ Thank you

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 alankemp · Apr 29, 2016 at 12:36 PM

You can open any web page with Application.OpenURL("some website address here").

To post a twitter message specifically, you can try something like this:

 string tweet = "Put a message to tweet here! #unity";

 string URL = "http://twitter.com/intent/tweet?text=" + WWW.EscapeURL(tweet);

 Application.OpenURL(URL);

For more functionality there are a number of assets on the asset store that will deal with posting to twitter, facebook and other social media platform. For example: https://www.assetstore.unity3d.com/en/#!/content/16415

Comment
Add comment · Show 3 · 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 joyjeba28 · Apr 29, 2016 at 12:51 PM 0
Share

@alankemp Thank you for you response.But OpenURL will open the browser or app in a new window. it will exit from the game window(app). i dont want my user to go out of my game.. i need my user to tweet within my game itself without going out of game.. i want the twitter app or browser to open within my game itself.. how can i do that???

avatar image alankemp joyjeba28 · Apr 29, 2016 at 07:45 PM 0
Share

You could try a plugin like uwebkit (from here: http://uwebkit.com/). That allows you to render a web page inside your own app.

avatar image joyjeba28 alankemp · May 02, 2016 at 01:24 PM 0
Share

Thank you..@Alan$$anonymous$$emp . Uwebkit if working fine for me .. but is there any default method or coding(c#) is there to display web pages . Can i interact with the web page in unity game without plugin or DLL( have to interact only with default method or codes(c#) )

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

How do we use AddJavaScriptInterface of WebView in any game for iOS & Android to call a function at the Unity end from the web page end? 0 Answers

Opening Webpages in WP8? 0 Answers

Adding a photo to "Lets Tweet in Unity" plugin 0 Answers

How to Open Twitter Page With Twitter App (Android) 2 Answers

Running Update() in background while iOS alert or webview is active 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