Hello,
I downloaded the Aspose.SVG Product Family into my Unity project to extract some data from .svg files.
The part of code that open the file looks like this:
using (var document = new SVGDocument(Application.dataPath + "/1544277506.svg"))
{
//Some logic here...
}
While the SVGDocument constructor finds the file (it didn’t throw any exceptions), the document variable remains empty. I tried to access some of its properties (like DocumentElement) and they were all null.
While looking for a solution, I tried to create a new project in VisualStudio. Running the same code, this time the document variable wasn’t empty and I could access its properties with no problem.
I guess the problem is related to the integration of the Aspose.SVG product with Unity.
I am using Unity version 2020.3.15f2 and Aspose.SVG version 21.11.0.
Any help to fix this will be great.
Thanks in advance.