You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
I download firebase sdk and mechahamster-master.zip and import them to Unity . But Unity appears some errors as below:
Severity Code Description Project File Line Suppression State Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 203 Active Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 207 Active Error CS1061 'FirebaseApp' does not contain a definition for 'SetEditorDatabaseUrl' and no accessible extension method 'SetEditorDatabaseUrl' accepting a first argument of type 'FirebaseApp' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 247 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AddScore' and no accessible extension method 'AddScore' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 50 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AllScoreDataPath' and no accessible extension method 'AllScoreDataPath' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 36 Active Error CS1061 'LeaderboardController' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 35 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 30 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 32 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 73 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 74 Active
The text was updated successfully, but these errors were encountered:
The LeaderboardController script is missing from the prefab. Also wasn't sure about the missing Firebase.Leaderboard namespace. Turns out they're here ... https://github.com/FirebaseExtended/unity-solutions/tree/master/Firebase_Leaderboard
I copied the script content over to get passed those issues but now have problems with missing Unity.Tasks. I had to remove that included dll because of a conflicted with a default Unity package (I'm trying to open it in Unity 2021 but this project references Unity 2017 which probably wasn't an issue back then).
"Library\PackageCache\[email protected]\Runtime\Core\IUnityServices.cs(11,9): error CS0433: The type 'Task' exists in both 'Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I download firebase sdk and mechahamster-master.zip and import them to Unity . But Unity appears some errors as below:
Severity Code Description Project File Line Suppression State Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 203 Active Error CS0117 'FirebaseApp' does not contain a definition for 'CheckDependencies' Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 207 Active Error CS1061 'FirebaseApp' does not contain a definition for 'SetEditorDatabaseUrl' and no accessible extension method 'SetEditorDatabaseUrl' accepting a first argument of type 'FirebaseApp' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 247 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AddScore' and no accessible extension method 'AddScore' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 50 Active Error CS1061 'LeaderboardController' does not contain a definition for 'AllScoreDataPath' and no accessible extension method 'AllScoreDataPath' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 36 Active Error CS1061 'LeaderboardController' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'LeaderboardController' could be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 35 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Editor' does not exist in the namespace 'Firebase.Unity' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\MainGame.cs 20 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0234 The type or namespace name 'Leaderboard' does not exist in the namespace 'Firebase' (are you missing an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 18 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 30 Active Error CS0246 The type or namespace name 'LeaderboardController' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 32 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 73 Active Error CS0246 The type or namespace name 'UserScore' could not be found (are you missing a using directive or an assembly reference?) Assembly-CSharpC:\Unity\test\FirebaseTest\Assets\Hamster\Scripts\States\UploadTime.cs 74 Active
The text was updated successfully, but these errors were encountered: