Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    935
    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:
    935