Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 unity_1Zsfz2F5xVRviA · Feb 18, 2019 at 11:50 PM · mathinteractioninteractive

Allowing users to make graphs in game--is this possible?

I'm currently building an educational app, and I'm a complete beginner at Unity so I just wanted to know if what I want to do is possible, and if so, where to even begin.

I want to allow users to graph their own data in unity--as in, they input a number, and that point is created and displayed on a graph. They would only need to do this for about 3 points.

Thanks!

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by AaronBacon · Feb 19, 2019 at 01:03 AM

Short answer: Yes.


Longer Answer:

Well, I'll first say it's definitely possible in Unity, but as for how, it really depends on how you want to go about rendering it. One thing you'll definitely need is Mathf.

https://docs.unity3d.com/ScriptReference/Mathf.html

Mathf is used for all sorts of mathematical calculations in Unity, and due to the nature of your app, it sounds like you'll be needing quite a bit of it.


So Mathf can probably generate whatever data you need, but depending on how you want to render it depends on the specific code you'll need. Remember, Unity has a huge community, and almost everything you want to do has probably been tried in some form by someone else, and if they ran into issues, there's probably an answer for it somewhere. The trick is to break down problems, for example, instead of directly searching for making a graph (in terms of googling, asking specific questions on here is obviously fine), you can instead break that down into "creating graphics in unity" and "getting world coordinates in unity" and then combine those 2 questions to create a script that can render a set of points at a specific set of coordinates generated by the Mathf Function above.

So hopefully something from that helps, if not, just watch the Youtube video, that should help =P

Comment
Add comment · Show 3 · 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
avatar image unity_1Zsfz2F5xVRviA · Feb 19, 2019 at 01:58 AM 0
Share

Thank you! This is not quite what I meant, but it gives me an idea of what to research next

avatar image AaronBacon unity_1Zsfz2F5xVRviA · Feb 19, 2019 at 02:21 AM 0
Share

Ah, hope you manage to find the resources for what you're looking for anyway =P

avatar image Bunny83 unity_1Zsfz2F5xVRviA · Feb 19, 2019 at 03:08 AM 0
Share

It's still not clear what you're actually asking. What part do you have problems with? Drawing a graph or getting the user input? Some time ago i made an expression parser and a sample application. A WebGL build can be found here. The sample application simply uses the expression parser to parse the expression the user enters. It always draws a "curve" of 2000 line segments. All unknown parameters are simply feed with a value between -1 and 1


You may want to edit your question and be more precise what you actually want from us.

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

108 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Raycast and OnTriggerEnter performance 1 Answer

How to turn real life object into gameobject 1 Answer

Terrain trees 1 Answer

Terminal Typing 0 Answers

immersive and interactive 3D tour 0 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