Namespace using Unity.VectorGraphics not available to scripts

I’m trying to use the new VectorGraphics package to parse an SVG at runtime. The error I’m receiving is:

  • The type or namespace name ‘VectorGraphics’ does not exist in the namespace ‘Unity’ (are you missing an assembly reference?)`

SVGs work just fine when importing in the editor but Unity.VectorGraphics can’t bee accessed by scripts. Any ideas?

You need to add an Assembly Definition and/or add the DLL for Unity.VectorGraphics into your Assembly Definition and allow unsafe code.