Does Cocos Creator currently support SVG format files? If so, how can I render them in a scene? If not, is there an extension of some sort which would allow that?
1 Like
not natively, it doesn’t. someone made a port of raphael.js that works with older versions of creator, and i’ve updated it to work with 2.0.10. you may find the project here: https://github.com/stefandee/raphael-example
problem is, it won’t load and render all svg, because the cc.Graphics doesn’t have support for fill rule (even-odd is what is necessary for most complex svgs). made a feature request here, but disappeared in the nothingness: Feature Request: cc.Graphics Fill Rule