merovi-labs / svgtexture2d

Godot 4.2 Plugin for Realtime SVG Sprites. Adds support for the SVG Extensions File Format.
Apache License 2.0
44 stars 6 forks source link

Cannot get class 'SVGTexture2D'. Godot 4.2.1 #4

Closed kirkwoodwest closed 2 months ago

kirkwoodwest commented 7 months ago

Somehow I'm getting an error where it can't find this class...

Cannot get class 'SVGTexture2D'.

Been looking around for anything related to tools and resources but I'm just coming up milhouse. :(

Whats interesting is the tool seems to work "fine"... Somehow GODOT keeps throwing these errors for every SVG Imported using SVGTexture2D.

fire01z commented 3 months ago

Somehow I'm getting an error where it can't find this class...

Cannot get class 'SVGTexture2D'.

Been looking around for anything related to tools and resources but I'm just coming up milhouse. :(

Whats interesting is the tool seems to work "fine"... Somehow GODOT keeps throwing these errors for every SVG Imported using SVGTexture2D.

I’m encountering the same alerts. I’m looking into the source, but nothing seems to fix it. The functionality seems to be normal.

raygoe commented 2 months ago

This should get fixed in v4.3.

https://github.com/godotengine/godot/pull/92667

In the meantime I've included a couple workarounds, but it'll still require you to load the project twice.