I gonna build a 2D game, since it needs to support both iPhone and iPad, zoom in/out is needed,
Which format is better to be used?
PNG or SVG? Does Unity UI support SVG well ?
I’ll apprieate it a lot if you can give me some hints
Last I checked Unity’s SVG importer just “strikes” the vector image to a raster image, so there’s no real point to using it, as in you will always get pixels.
The only way I know to get an SVG into Unity is to bring it into Blender, convert it to a curve and export it as an FBX, then you can import it as actual geometry. NOTE: it will still be “struck” at a certain vertex / curve sampling rate, but you can adjust that at convert time.
Oh, thank you! but is fbx capable for Unity UI?
Not directly but perhaps through the UI-Extensions people??
This sorta looks like it might work, not sure.
https://github.com/Unity-UI-Extensions/com.unity.uiextensions
If not you could stream the vertex data into the UI Graphic yourself.
OK, thanks a lot, it’s very kind of you