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

Build error #227

Open
coffandro opened this issue Jan 1, 2025 · 3 comments · May be fixed by #228
Open

Build error #227

coffandro opened this issue Jan 1, 2025 · 3 comments · May be fixed by #228

Comments

@coffandro
Copy link

This is the same error as #204 but I felt it might be good to revive it.

I'm on Unity 2021.3.44f1 and get the following 4 errors whenever I attempt to build:

Library/PackageCache/com.h8man.2d.navmeshplus@6d8836e05a/NavMeshComponents/Scripts/CollectTilemapSourcesCache2d.cs(30,68): error CS0426: The type name 'SyncTile' does not exist in the type 'Tilemap'
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed' in 2 seconds (1564 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ce] in /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
@coffandro
Copy link
Author

It seems SyncTiles just aren't supported outside the editor in version 2021, is there a way to avoid it?
https://discussions.unity.com/t/build-error-cs0426-the-type-name-synctile-does-not-exist-in-the-type-tilemap/876593/3

@coffandro
Copy link
Author

Found a fix in the linked PR

@h8man
Copy link
Owner

h8man commented Jan 2, 2025

Unity doesn't support 2021, it's better to move on with the new unity. But I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants