SVG Import settings

Hi guys,
I’m importing runtime svg asset derived from a pdf to show them as pdf pages. I am struggling with tessellation options, since some svg are not shown at all. Here is my tesselationoptions object:

tessellationOptions = new VectorUtils.TessellationOptions();
tessellationOptions.StepDistance = 5f;
tessellationOptions.MaxCordDeviation = 5f;
tessellationOptions.MaxTanAngleDeviation = 5f;
tessellationOptions.SamplingStepSize = 0.5f;

which are the best settings to allow for a correct import?

The easiest way to investigate this would be to import your svg as a normal asset in Unity, and copy the import settings that works from the inspector. You can set the tessellation settings in “Advanced” mode and you will find similar settings.

9005443--1241053--2023-05-10 15_09_04-Window.png

Note that the “Sampling steps” is inverted in C#, instead of 100 you would have to enter 0.01, etc.

Thank you so much, I’ll check that!