Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by pierrecollet · Jul 09, 2013 at 07:41 AM · windownguigraphcurvevectrosity

Draw Graph with Vectrosity in NGUI window

Hi!

I actually make a chemical reaction simulator for a game, and I would like to draw graphs that will represents the concentration of each molecules.

So I bought NGUI and Vectrosity because Vectrosity seems to be the best way to draw graphs. For now I have some 2D curves (VectorLines) made with Vectrosity and it works fine. I also have my window made of sprites and labels wich was built with NGUI.

So now, I wondering me how can put this curves in the window.

The main problem is to cut the curves at the edges of the window (NGUI sprite). One of my ideas was to create 3D VectorLines and modify the depth view of the camera to hide some points by assigning them a huge (or not) Z position. But for now it seems really hard to do that and not really fancy.

Can somebody help me or give me advices?

Thanks in advance for your answers

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CHPedersen · Jul 09, 2013 at 07:43 AM 0
Share

Do you have Unity Pro?

avatar image pierrecollet · Jul 09, 2013 at 07:52 AM 0
Share

No, I have the free version =/

avatar image CHPedersen · Jul 09, 2013 at 08:01 AM 0
Share

That makes this harder. I was going to suggest RenderTextures, but they're a Unity Pro thing. You can draw the Vectrosity lines within the window border yourself and keep updating them so they stay within the window when the window moves and gets resized, but it won't be robust because I'm positive there will be layering issues if another window should ever cover the graphing one. So I won't post this solution as an answer.

avatar image pierrecollet · Jul 09, 2013 at 09:29 AM 0
Share

Ok thanks. I dont think that something will cover the graph curves. I will try to do something by cutting curve by alternating Continious and discrete LineType when maximum height is reach.

Any other ideas? =)

avatar image CHPedersen · Jul 09, 2013 at 09:33 AM 0
Share

You could consider carefully maintaining the vectrosity camera's normalized view port rect so that it always fits inside the NGUI window. This will clip the vectrosity lines against the window properly.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by etoreo · Nov 17, 2013 at 03:15 AM

I know this is years late, but you could try NGraph out. I have just released a graphing utility for NGUI (and soon other GUI toolkits) called NGraph:

https://www.assetstore.unity3d.com/#/content/12637 alt text

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Using Vectrosity, I want to make a curve. 0 Answers

How to draw graph(line graph , spline graph) in unity using. 0 Answers

Unity inspector graph for exponential values 1 Answer

Extending tangents in Animation window 0 Answers

Vectrosity curve thickness is same with cam zoom 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges