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 /
  • Help Room /
avatar image
0
Question by ashwanidv100 · Oct 25, 2016 at 02:15 PM · errorpluginunity 4.6google play gameserror-message

Error occurs in Compilation

Causing error :

Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs(146,40): error CS0117: UnityEngine.Texture2D' does not contain a definition for blackTexture'

i am trying to plugin google play services in application . And that causing the trouble some error .

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 ragnaros100 · Oct 25, 2016 at 02:46 PM 0
Share

Can you post the part of the code that does not compile?

avatar image ashwanidv100 · Oct 25, 2016 at 04:47 PM 0
Share
             if (www.error == null)
             {
                 this.mImage = www.texture;
             }
             else
             {
                 **mImage = Texture2D.blackTexture;**
                 Debug.Log("Error downloading image: " + www.error);
             }

             mImageLoading = false;
         }
         else
         {
             Debug.Log("No URL found.");
             **mImage = Texture2D.blackTexture;**
             mImageLoading = false;
         }
     }

 
avatar image ashwanidv100 · Oct 25, 2016 at 04:51 PM 0
Share

Now Errors are :

  1. Resolver version is now: 10101 UnityEngine.Debug:Log(Object) GooglePlayServices.PlayServicesResolver:RegisterResolver(IResolver) GooglePlayServices.ResolverVer1_1:.cctor() UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

2 .url: https://kharma.unity3d.com/

3 . [Global Exception] [object Event] returnValue:true. timeStamp:1477405685470. eventPhase:3. target:[object HT$$anonymous$$LScriptElement]. defaultPrevented:false. srcElement:[object HT$$anonymous$$LScriptElement]. type:error. clipboardData:undefined. cancelable:false. currentTarget:[object DO$$anonymous$$Window]. bubbles:true. cancelBubble:false. notLogged

4 . []

  1. Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs(146,40): error CS0117: UnityEngine.Texture2D' does not contain a definition for blackTexture'

i want to intergrate facebook login , sharing , inviting and using the leaderboard in unity. and google play game integration.

avatar image hexagonius · Oct 25, 2016 at 08:26 PM 0
Share

What Unity Version are you using. From the docs Texture2D.blackTexture exists from Unity 5.4.X

avatar image ashwanidv100 hexagonius · Oct 27, 2016 at 05:45 PM 0
Share

I am using Unity 4.5 , So help me to solve the problem . And which plugin i use

https://github.com/playgameservices/play-games-plugin-for-unity

avatar image ashwanidv100 hexagonius · Oct 27, 2016 at 06:02 PM 0
Share

Ok its get solved now , i tried to solve by older plugin and its working

1 Reply

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

Answer by ashwanidv100 · Oct 27, 2016 at 06:03 PM

Solved the Problem by changing the plugin to the older version .

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Google play games services plugin can't log in 1 Answer

error CS0118 'charanim.CameraTurn' is a field but a 'type' was 'expected' 1 Answer

Why my Unity can not run normally? 1 Answer

Help Troubleshooting: "Cannot generate 9 slice most likely because the size is too big." 2 Answers

Android Manifest xml missing - Build failed. Need Help! 4 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