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
3
Question by lumyx · May 17, 2016 at 05:48 PM · javascriptdata visualization

Using Js Library in Unity - (Intention to use d3.js or similar)

I would like to use the data visualisation library d3.js in Unity, so I can ultimately navigate through a 3d world with all the different visualisations (2d or 3d). Possible to integrate into Microsoft HoloLense.

I would like to know if any of the unity frameworks allows the use of js libraries.

I know that UnityScript it's not quite JS, would I be able to do it using webGL?

An alternative that I thought would be to use Unity Web Player and pass messages between the JS library and the player. Then draw the results in Unity. However, I am not sure how easy it would be (or versatile) it would be to draw the graphs in Unity. Unless I build each visualisation individually.

I also saw this: http://forum.unity3d.com/threads/unity3d-plugin-for-embedding-webpages-on-windows-is-ready.83071/

But, it looks pretty dead. Any maintained alternatives?

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
0

Answer by msabouri · Oct 22, 2018 at 05:37 AM

Web-view is not officially supported by Unity, and the plugins out there are insane, it's hard to make them work the way you want on all platforms you want!

Even if you make one of those plugins work for you, it's not worth it from performance point of view. There are two group of plugins. One group try to map each html element to similar Unity UI elements, they're generally limited to basics and js is completely out of the picture. The other group tried to run a browser simulator like chromium inside Unity, they're support web/css/js completely like a browser, but they're heavy, and they hugely drop your performance.

I worked with D3 and I know how exciting and easy it is to make crazy beautiful vfx. But I advice you to use Unity UI and instead of spending your time on web-view plugins try to make the same effect you want with coding!

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Setting Scroll View Width GUILayout 1 Answer

Can someone help me fix my Javascript for Flickering Light? 6 Answers

how to set input mouse position, to a rect of a gui button that also needs to follow a different rect 1 Answer

How much data can I send from the browser through unityObject.SendMessage()? 1 Answer

JavaScript collision code problem. 1 Answer


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