- Home /
 
 
               Question by 
               Heratitan · Jan 28, 2013 at 04:36 AM · 
                gamecenterunknown identifier  
              
 
              Why does Unity not recognize GameCenterPlatform?
So, I was looking into how to have GameCenter show the achievement banner when the user completes an achievement and I found this in the documentation: GameCenterPlatform in Unity Scripting Reference
However, when I use "GameCenterPlatform", Unity does not recognize it and I get the following error: Unknown identifier: 'GameCenterPlatform'.
I continue to get this error when using the code copied directly from the documentation (Also: I am working in JavaScript).
Does anyone know why this is happening?
Thanks.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Graham-Dunnett · Jan 28, 2013 at 10:36 AM
Try adding:
 import UnityEngine.SocialPlatforms.GameCenter;
 
               below the pragma script.
Your answer