Forum

You need to log in to create posts and topics.

SVG

I can not use svg, when I put purely in code in html:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M21 11h-18c-0.6 0-1 0.4-1 1s0.4 1 1 1h18c0.6 0 1-0.4 1-1s-0.4-1-1-1z"></path>
<path d="M3 7h18c0.6 0 1-0.4 1-1s-0.4-1-1-1h-18c-0.6 0-1 0.4-1 1s0.4 1 1 1z"></path>
<path d="M21 17h-18c-0.6 0-1 0.4-1 1s0.4 1 1 1h18c0.6 0 1-0.4 1-1s-0.4-1-1-1z"></path>
</svg>

Not even when I call it an img tag

Sorry for english, I'm using google translate

If you load the example SVG unity project, the project html page says SVG is not supported yet. It is a work in progress. I bit of a bummer. I changed the file extension to svgx to force resolution to the c# class that will handle svg, but that code is not working.

Want the latest updates? Check out the repositories.