mackysoft / Unity-SerializeReferenceExtensions

Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.
https://qiita.com/makihiro_dev/items/26daeb3e5f176934bf0a
MIT License
763 stars 58 forks source link

[IMPROVE] Examples as Samples #14

Closed h1v4n closed 2 years ago

h1v4n commented 2 years ago

Improvement destription

In Unity 2021 I get a warning about cs files from a package without asmdef. Could you provide the Example folder as a Sample instead?

https://docs.unity3d.com/2019.4/Documentation/Manual/cus-samples.html

Thanks!

mackysoft commented 2 years ago

Changes have been made to support Samples. This will be applied to the version to be released soon.

Thanks!

h1v4n commented 2 years ago

Thanks for the update!

But now a different warning is shown:

A meta data file (.meta) exists but its folder 'Packages/com.mackysoft.serializereference-extensions/Samples~' can't be found, and has been created. Empty directories cannot be stored in version control, so it's assumed that the meta data file is for an empty directory in version control. When moving or deleting folders outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.

mackysoft commented 2 years ago

I have released a new version with the Samples~.meta file removed. You will no longer receive warnings!

Thanks to the clear logs, I was able to correct the issue immediately.