|
Post by alexsmv on Mar 10, 2023 17:53:23 GMT
Hi! Thanks for this wonderful asset! Could you please help me some errors I've got when try to build project. I downloaded and install latest 1.11 version on Unity 2021.3.16f1 and build is failed with these errors:
Assets\EndlessBook\Book\Editor\BookInspector.cs(11,30): error CS0246: The type or namespace name 'Editor' could not be found (are you missing a using directive or an assembly reference?)
Assets\EndlessBook\Book\Editor\BookInspector.cs(10,2): error CS0246: The type or namespace name 'CustomEditorAttribute' could not be found (are you missing a using directive or an assembly reference?) Assets\EndlessBook\Book\Editor\BookInspector.cs(10,2): error CS0246: The type or namespace name 'CustomEditor' could not be found (are you missing a using directive or an assembly reference?) Assets\EndlessBook\Book\Editor\BookInspector.cs(59,26): error CS0115: 'BookInspector.OnInspectorGUI()': no suitable method found to override
|
|
|
Post by echo17 on Mar 11, 2023 12:49:32 GMT
I downloaded this version of Unity and successfully built EndlessBook without errors. I would suggest starting with a clean project with nothing in it, then download the EndlessBook plugin (Try re-download option to make sure there isn't anything corrupt about your download) and build a demo project without any changes to the scripts or build settings. If that works, then you can slowly change settings or scripts until you find what is causing the issue. FYI, Editor scripts should not be built since they only run in the editor. I'm not sure why you are getting these errors unless you changed a setting in Unity that I'm not familiar with.
|
|
|
Post by robymv on Nov 23, 2023 16:05:20 GMT
Hi, I'm having the exact same errors.
I tried to download the asset from the store 3 times, new project, install the asset and click on build.
Versions I tested with: 2021.3.26f1 and 2022.3.10f1
Do you have any tips for making it work?
|
|
|
Post by echo17 on Nov 24, 2023 11:02:24 GMT
So those are all editor scripts that shouldn't be in your build. Unity does not include editor scripts when building, so there is something not set up right with Unity if it is trying to include those in the build. Make sure you haven't moved the code to a different location. Unity expects editor scripts to be in a particular folder.
|
|
|
Post by robymv on Nov 24, 2023 19:44:48 GMT
Perfect, I solved it. The edit folder was in the path "EndlessBook\book\". I moved that folder to the main "Assets" folder and everything worked. A thousand thanks.
|
|
|
Post by echo17 on Nov 25, 2023 10:34:23 GMT
No problem, thanks for the update. Sounds like there is a bug in some versions of Unity. Editor folders should be allowed anywhere. As long as editor scripts are in the Editor folder, it should exclude the files. Hopefully they've fixed that in other versions.
|
|