Syomus / ProceduralToolkit

Procedural generation library for Unity
https://assetstore.unity.com/packages/tools/utilities/procedural-toolkit-16508
MIT License
2.64k stars 230 forks source link

Broken packages #70

Closed z3nth10n closed 3 years ago

z3nth10n commented 3 years ago

Description

For some reason the packages are broken, some scripts are missing. This happens when I recloned my repo that I have since 3 months.

Assets\Samples\Procedural Toolkit\0.2.4-preview\Samples\Buildings\Editor\BuildingGeneratorConfiguratorEditor.cs(6,26): error CS0246: The type or namespace name 'BuildingGeneratorConfigurator' could not be found (are you missing a using directive or an assembly reference?)

What can I do?

Version

Just clone my repository: https://github.com/uta-org/uzSurfaceMapperDemo/tree/unity_project

And see what happens:

image

z3nth10n commented 3 years ago

Well, after trying some times I finally fixed the issue, I reimported packages by deleting the folder and showing preview packages. Then, I added the #upm URL again in the same window.

But I missed a feature in the Package Manager window. I didn't know that I could import the Samples from a button, so maybe it was caused because a bad way to import the Samples in the folder.

I had some *.asmdef files duped so I removed the duped Samples folder then I reimported the Samples again and everything worked fine.

Sorry for the poor issue, but this can be useful to anyone who tries a bad practice like me.