Skip to content

sdk3 LocationBasedGame has errors when running #1956

@avenmia

Description

@avenmia

Unity Version: 2022.3.62.f2
OS: Ubuntu 24.04.03

Steps to reproduce

  1. git clone https://github.com/mapbox/mapbox-unity-sdk.git
  2. cd into mapbox-unity-sdk project repo and run git switch sdk3
  3. In Unity Editor, Package Manager > Add From Disk > Select package.json from mapbox-unity-sdk project
  4. In the Package Manager select Download Sample for LocationBasedGame
  5. Try to target android

I get the following errors:
Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingCacheManagerBehaviourEditor.cs(11,67): error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingCacheManagerBehaviourEditor.cs(10,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)

Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingCacheManagerBehaviourEditor.cs(10,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)

Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingDataFetchingManagerBehaviourEditor.cs(8,74): error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingDataFetchingManagerBehaviourEditor.cs(7,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)

Projects/MapBoxSDK/mapbox-unity-sdk/Runtime/Mapbox/MapDebug/Scripts/Logging/Editor/LoggingDataFetchingManagerBehaviourEditor.cs(7,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions