Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build failure when used as package #15

Closed
Hermesiss opened this issue Apr 11, 2019 · 1 comment
Closed

Fix build failure when used as package #15

Hermesiss opened this issue Apr 11, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Hermesiss
Copy link
Member

Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(4,7): error CS0246: The type or namespace name 'UnityEditorInternal' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(9,44): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(8,6): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(8,6): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(48,30): error CS0115: 'NavigationManagerEditor.OnInspectorGUI()': no suitable method found to override
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(11,17): error CS0246: The type or namespace name 'Tool' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(315,10): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.trismegistus.unity-navigation-splines@1728a80c5d1cac7a7fe0317168b5db959a50f19a\Navigation\Editor\NavigationManagerEditor.cs(315,10): error CS0246: The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)
@Hermesiss Hermesiss added the bug Something isn't working label Apr 11, 2019
@Hermesiss Hermesiss self-assigned this Apr 11, 2019
@Hermesiss
Copy link
Member Author

Apparently Unity is not consistent while handling Editor folders in packages during build, so it's mandatory to wrap all editor scripts in

#IF UNITY_EDITOR 
<whole script>
#ENDIF

Fixed in #17

Hermesiss added a commit to TrismegistusDevelopment/unity-package-manager-ci that referenced this issue Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant