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
725 stars 56 forks source link

[BUG] SubclassSelector attribute works in Unity, but VSCode doesn't recognize it #27

Closed Sambo3975 closed 1 year ago

Sambo3975 commented 1 year ago

What happened?

Expectation: VSCode would recognize the attribute

Reality: VSCode spits out the following two errors when the attribute is used: "The type or namespace name 'SubclassSelectorAttribute' could not be found (are you missing a using directive or an assembly reference?) [Assembly-CSharp]" "The type or namespace name 'SubclassSelector' could not be found (are you missing a using directive or an assembly reference?) [Assembly-CSharp]"

As stated, the attribute works in Unity. I can select a subclass and set its fields without any issues. There's probably just some configuration that I need to adjust in VSCode, but I'm not sure how that would be done.

Package Version

1.1.7

Unity Version

2021.3.14f1

Sambo3975 commented 1 year ago

After updating VSCode and restarting my machine, VSCode is no longer showing error messages.