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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Graphing?

Discussion in 'UGUI & TextMesh Pro' started by chilton, Nov 2, 2015.

  1. chilton

    chilton

    Joined:
    May 6, 2008
    Posts:
    561
    Hi,

    What's the best way to draw an in-game graph? Is this possible now, using the new UI?

    Thanks!
    -Chilton
     
  2. Senshi

    Senshi

    Joined:
    Oct 3, 2010
    Posts:
    557
    Oh, yay, my time to shine! I recently uploaded a package called "Primitive UI" that actually includes a simple graphing example. Depending on your needs, that might be sufficient. There is also a more dedicated graphing asset on the store which may be more suitable for your needs, or you could of course roll your own solution. What kind of graphs are you looking to draw?

    Asset Store link: https://www.assetstore.unity3d.com/en/#!/content/45996
    Demo link: http://patrickboelens.com/PrimitiveUI/demo.html
     
  3. chilton

    chilton

    Joined:
    May 6, 2008
    Posts:
    561
    Awesome. Does this work on mobile too?
     
  4. Senshi

    Senshi

    Joined:
    Oct 3, 2010
    Posts:
    557
    I haven't been able to test it on-device yet, but I have no reason to believe it doesn't, as it's essentially just an extended MaskableGraphic.
     
  5. jcredible

    jcredible

    Joined:
    Dec 4, 2012
    Posts:
    24
    Nice Senshi! I've actually been meaning to see what your asset can do, that's very cool.

    For what it's worth, I spent a while looking for a free line-graph solution and didn't find anything that really fit my needs. I'll be releasing one (and a few of my other ui scripts), totally free, within the next week or two.
     
  6. Senshi

    Senshi

    Joined:
    Oct 3, 2010
    Posts:
    557
    Hey, thanks for checking it out! Looking forward to your line-graph package. =)