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
1
Question by Blaque · Jan 04, 2015 at 05:09 PM · plugingoogle playnamespaceusing

Namespace GooglePlayGames could not be found

I'll try my best to describe my issue: Using this plugin and following this guide i'm trying to implement google play service on my game, but google's code is written in c# and my game is entirely in js, so i got a lot of problem by accessing them. Then i create a simple c# script that should initialize google play service:

 using GooglePlayGames;
 using GooglePlayGames.BasicApi;
 using UnityEngine.SocialPlatforms;
 
 public class GoogleDialer : MonoBehaviour {
 
     // Use this for initialization
     void Start () {
         GooglePlayGames.Activate();
         Social.localUser.Authenticate(authentication);
     }
     
     void authentication(bool success){
     if (success) print("Logged with: " + Social.localUser.userName + " ID: " + Social.localUser.id + " Underage: " + Social.localUser.underage);
     else print("Not logged");
     }
 
     
     // Update is called once per frame
     void Update () {
     
     }
 }

This script should be run at the start of the game, but by the script it seems that i can't access google's script:

Assets/Plugins/GoogleDialer.cs(1,7): error CS0246: The type or namespace name GooglePlayGames' could not be found. Are you missing a using directive or an assembly reference? Assets/Plugins/GoogleDialer.cs(2,7): error CS0246: The type or namespace name GooglePlayGames' could not be found. Are you missing a using directive or an assembly reference?

I put the c# script in plugins folder because i read that this is the solution to allow js script to access the c# ones I tried almost eveything, scrambling scripts and folders but none has worked, according to the guide this shouldn't happen so i don't know what should i do D=

This is the script i'm trying to access by the code i've wrote, my code is located in:

New Unity Project/Assets/Plugins

Google's code that i'm trying to access is in:

New Unity Project/Assets/GooglePlayGames/ISocialPlatform

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 djoshi · Jan 09, 2015 at 07:36 AM 0
Share

Exactly Same Problem I am also facing...Anyone Please show us a way.. (Sorry for posting this in Answer)

0 Replies

· Add your reply
  • Sort: 

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

using UnityEditor outside of Editor folder when compiling build? 4 Answers

Can't build apk with Google play unity plugin 0 Answers

How do I remove Google Plus from iOS Build only? 1 Answer

.NET dll seen as native in Unity3D 1 Answer

GPG dll not found exception Google Services 0 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