Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Unity UI SVG support script

Discussion in '2D Experimental Preview' started by phil-Unity, Sep 5, 2018.

  1. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003
    Pattern fills are currently processed at import time only. The pattern will be repeated during the import before the tessellation process. This is mostly for performance considerations, as pattern are expensive to tessellate and clip.

    That said, the pattern is basically a SceneNode hierarchy that's repeated inside a clipping node. You can achieve the same result by duplicating the pattern yourself. Ideally avoid the clipping container as this is very expensive to compute (clipping is performed on a per triangle basis).
     
  2. harshitgpt41

    harshitgpt41

    Joined:
    Aug 8, 2022
    Posts:
    3
    can we convert that sprite into an image programmatically?
     
  3. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    1,003