Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[NLP to 3d\anim] Hierarchical data (XML\JSON etc) to Unity3d (TreeView etc)

Discussion in 'General Discussion' started by IndubhushanDas, Oct 22, 2018.

  1. IndubhushanDas

    IndubhushanDas

    Joined:
    Feb 19, 2014
    Posts:
    110
    Hello. I need some program to convert XML\JSON (or other "hierarchical file") into TreeView in Unity.

    First let me tell me why I want it. Then it will probably be more interesting for you to help me.
    Here is description of my purpose - https://connect.unity.com/p/million-dollars-idea
    (note: I don't ever want to earn on it. I never worked for Bazelevs company which I mentioned, as requirements very too high, and also very soon they closed the project...
    This program - "text to audiovisual sequence converter" is just my hobby. But you are welcome to participate in making such program, which I decribed in this link)

    In short, I want to use free SharpNLP to get analized English text (part-of-speech tags, hierarchy of words) - and then put that into Unity3d. I do have this work in WindowsForms, but they are absent in Unity3d. I have some subprograms, which convert my TreeView (I convert result of SharpNLP into TreeView with own script) into XML or JSON file(s).

    Then I need to open them in Unity3d. I need some xml\json (or whatever hierarchical data fileformat) reader for Unity3d. So it can read a file (generated by SharpNLP + my script outside of Unity3d), and convert its hierarchical data into TreeView.

    Well, here I stuck with two problems.
    1. XML\JSON reader. Which reader to use? I know much about XML, but very new to JSON. People say it is good. Are there any xml\json readers from file to TreeView?
    I was looking for assets for XML\JSON:
    https://assetstore.unity.com/search/?k=xml+price:0&order_by=relevance&q=xml&q=price:0&rows=42
    https://assetstore.unity.com/search/?k=price:0+json&order_by=relevance&q=price:0&q=json&rows=42

    there seem to be no free xml asset for this purpose, but there are some json. but they look same, I don't know which to choose. If anyone tried them - what can be useful for this purpose? Or there is no free solution for this?

    2. TreeView itself. It looks like there is no treeview in Unity. At least, not on player's\scene window. Only in hierarchy of objects. All right, I can make new empty gameobject, and use something like
    Code (CSharp):
    1.        
    2. player.transform.SetParent(newParent);
    3.  
    but that's not visible when it is compiled.

    I saw some treeview assets -
    https://assetstore.unity.com/search?q=treeview&k=treeview
    but I don't know if I have to use any of them. I mean to buy? If yes. then which one to buy best? Is there any treeview which will get as input xml\json?

    1+2. Preference is 2-in-1 solution, when one plugin-asset can read xml\json and and have treeview in it as well. So i don't have to do all this myself, but just use available tool. Free assets are preferable, but if that;s not possible- let me know about such commercial solution. Maybe I can buy it (or if someone wants he can donate me to buy such XML\JSON+TreeView assets - they write me private message)

    P.S. Next I'll like to go through all the nodes, looking for words like "human", instantiate some human gameobject. If verb like "walk" is found - make him walk etc etc (text to speech is also to be there). Read my article in the link.

    But to make this magic work, I just need XML\JSON (or simialr) to Unity3d-TreeView. Any suggestions?

    Thank you in advance
     
  2. Brahman-Intelligence

    Brahman-Intelligence

    Joined:
    Jan 14, 2015
    Posts:
    4
    Hello, anyone can help?

    I've bought a TreeView asset (4$) -
    https://assetstore.unity.com/packages/tools/gui/tree-view-65364

    I attach screenshots:




    So, what I want is to make a converter of text into a game. I have hundreds and thousands of typical phrases as input like "Hero1 killed Hero2 with Magic1" as inpit for SharpNLP. You can see what I am doing. But I now need some xml\json reader for Unity. Anyone can help with it?
     
unityunity