Consider an enabled plugin with the following script:
And in the root of the godot project with that plugin:
You will always get the error res://test.gd:8 - Invalid call. Nonexistent function 'get_color' in base 'Resource (SwatchRef)'. while in the Editor (it will work in play mode).
This is because SwatchRef does not have the @tool annotation, meaning that it won’t have code that can be run in the editor and the methods won’t be added to the class.