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 Ekta-Mehta-D · Aug 21, 2013 at 09:39 AM · androidgoogleshare

Share results or score on google+ from android unity3d

Hello everyone..

I want to share my score on Google+ account on button click. But i am not able to find any tutorial or steps to perform this activity.

I know about Google API and have created my project but i don't know which code do i write in unity .

If anyone have implemented this type of activity then please guide me. So that i can come up with my result..

Please please help me.

Thanks in advance for your support and help..

Comment
Add comment · Show 6
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 robhuhn · Aug 21, 2013 at 10:09 AM 0
Share

I'm not familiar with google+ but what about the Google Play game services plugin by prime31. Are you looking for something like that?

avatar image Ekta-Mehta-D · Aug 21, 2013 at 10:16 AM 0
Share

But this is paid plugin.. I found https://developers.google.com/+/mobile/android/share

How can we do this in unity?

avatar image Ekta-Mehta-D · Aug 21, 2013 at 10:44 AM 0
Share

Please guys.. guide me.. Need help..

avatar image robhuhn · Aug 21, 2013 at 10:44 AM 0
Share

ok thats a java lib for native development. You would have to write your own plugin then http://docs.unity3d.com/Documentation/$$anonymous$$anual/Plugins.html. I don't know if there is a free plugin available already.

avatar image Ekta-Mehta-D · Aug 21, 2013 at 10:47 AM 0
Share

means i need to write android code. but how will i integrate that android project in unity? Can you tell me the steps?

Show more comments

1 Reply

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

Answer by robhuhn · Aug 21, 2013 at 11:13 AM

the steps are listed here http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Basically you can do the following:

  • export your unity build as android project

  • add your google+ API to that project and provide the methods you need to call from unity e.g. ShareScore

  • use SendMessage to call unity from java

  • set up and use the JNI to call java from unity (that is probably the hardest part)

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

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

17 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

Related Questions

Where to get official support for the Google Play OBB Downloader plugin? 1 Answer

How to use OBB and splitted binaries with Unity ? 0 Answers

A node in a childnode? 1 Answer

Unity on Google TV?? 3 Answers

Unity looses my Player settings 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