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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to draw with XML edges ?

Discussion in '2D' started by abrouard, Jan 16, 2023.

  1. abrouard

    abrouard

    Joined:
    Oct 3, 2022
    Posts:
    2
    Hi, I'm working for few weeks now on a Adobe Animate converter for Unity, allows you to use source file and to play it.
    Everything is fine, but I need to implement elements created with EaseJS on Unity, like this :

    <Edge fillStyle1="1" strokeStyle="1" edges="!1375 2346|3228 2346!3228 2346|3228 3111!3228 3111|1375 3111!1375 3111|1375 2346"/>


    I have an XMLNode to extract this data, and I already have a list of all my points.

    My question is, how can I draw some elements using this edge and in runtime ?
    I saw Vector Graphics but It's seems like It's only for already created SVG.
    And for now on, we have no other solution, software architecture is the same since 10 years.
     
  2. DavidTeo

    DavidTeo

    Unity Technologies

    Joined:
    Apr 1, 2021
    Posts:
    69
  3. abrouard

    abrouard

    Joined:
    Oct 3, 2022
    Posts:
    2
    Definetly what I wanted to do, problem is that I'll have to formalize XML then convert it, and finally use the SVG package (example is pretty short, I have huge elements). I wanted to do all this steps in one part.