cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
183 stars 31 forks source link

Broken prefabs #94

Closed equidevium closed 1 year ago

equidevium commented 1 year ago

image

After I updated to the latest version 1.8.7 I noticed that the components for unity cannot be added. Somehow I saw that on the resources folder of the UiTemplates all of the prefabs have missing scripts.

Is this an issue being created due to the update or something else may have broken them?

cs-util commented 1 year ago

I quickly tried this with a clean project in Unity 2022.2.1 and for me it still worked fine as usual: image

Which Unity version are you on? To me looks like something happened to the .meta files, eg that they were all regenerated and thats why the prefabs cant find anything. You are probably using the package manager to include cscore right? Maybe try removing this cache of cscore from your pc and packages and then readd it if this helps: image

equidevium commented 1 year ago

I rechecked it as you said and it still was havint the same problem. Unity version 2022.2.5f1

What fixed it was to reimport the entire assets. Which I found a little weird. You are right though there must be something that Unity may have changed with their metafiles manipulation and I also noticed that at some point they were regenerated.

Not sure why though.