Search Unity

VB.net as a 4th language in Unity [COMING SOON]

Discussion in 'Made With Unity' started by baha, Jul 1, 2012.

Thread Status:
Not open for further replies.
  1. baha

    baha

    Joined:
    Nov 2, 2009
    Posts:
    622
    Hello Everyone,

    We have integrated VB.net into Unity's compilation pipeline so you can have VB.net as a 4th language option when developing your game, it integrates seamlessly as all other 3 languages so you simply get it compiled whenever you change a script file, you can drag and drop into your objects normally like the 3 built-in languages :D so no need to build it as an external DLL then integrate it into Unity.

     
  2. BIG-BUG

    BIG-BUG

    Joined:
    Mar 29, 2009
    Posts:
    457
    If this works flawless I will certainly buy it.
    Maybe it's to early to ask, but what's about debugging and how does it perform compared to C# for example?
     
  3. baha

    baha

    Joined:
    Nov 2, 2009
    Posts:
    622
    The only remaining part which we are working on is to generate a visual studio project and include it in the same solution that Unity generates once this is done it should debug in the same way as c#.
     
  4. ns

    ns

    Joined:
    Apr 8, 2013
    Posts:
    2
    Hello, is VB.net supported already? thanks
     
  5. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    waiting for this.
     
  6. c-Row

    c-Row

    Joined:
    Nov 10, 2009
    Posts:
    853
    Colour me interested. Guess it's time to get me a copy of Parallels soon.
     
  7. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Hmm interesting move... have been longing for a basic-oriented language in Unity for ages... it wont be quite as easy as like BlitzBasic but I think a lot of people will enjoy this. It has a lot of support on the web (partly because it is the backend script language for Microsoft Office) and is fairly easy to type.

    I hope all the Unity documentation will be fully updated with examples for VB.

    Then we'll start seeing stuff on the asset store written in VB instead of C# which will be interesting.
     
    Last edited: Apr 8, 2013
  8. c-Row

    c-Row

    Joined:
    Nov 10, 2009
    Posts:
    853
    Any updates on this?
     
  9. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    Any news : I'm waiting for Unity3D supports VB.net to use it !!!

    Thank you.
     
  10. baha

    baha

    Joined:
    Nov 2, 2009
    Posts:
    622
    Hi Everyone,

    I stopped working on the project to focus on developing GameDraw, if you want I can open source it! it is fully working and it will work as c# does, you can drag and drop script files and stuff, the only thing missing is the auto generating of visual studio solution files which is not a lot of work, when I have enough time I will write it as well, anyone interested in contributing to the project and testing it as it needs a lot of testing for sure!

    regards,
    Bahaa
     
  11. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    Hi baha,

    Thank you for your answer.

    It will be a pleasure for me to test your project.
    If your project become open source, I am sure that it will have a lot of interest and lot of contributors.

    Thank you again for your job.

    Regards

    Neoxeo
     
  12. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    Hi Bahaa,

    No news from you. I hope that you havn't change of idea.

    Regards

    Neoxeo
     
  13. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    537
    count me and my team in for all type of contribution.
     
  14. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    Baha,

    Give us news, please. Can we help, you ?
     
  15. ZDS-Alpha

    ZDS-Alpha

    Joined:
    Jun 1, 2013
    Posts:
    11
    need vb.net in unity.
     
  16. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    Up this subject.

    I invite all users who want to use Vbnet instead of C # to put a word in this post.

    This is just to encourage Baha and his team who work hard on GameDraw.
     
  17. neoxeo

    neoxeo

    Joined:
    Jun 1, 2013
    Posts:
    32
    http://feedback.unity3d.com/suggestions/addition-of-new-script-vbnet?page=1#comments

    Baha, please can you post this project on github for example to complete it (auto generating of visual studio solution files ) and start to test it.

    I know you have lot of job but the community can "help" you to made progress this project. I can made tests with a lot of small existing projects in C# that I have converted in VBnet, create new project...

    Thank you very much again and hope have news from you.

    Regards,

    Neoxeo
     
    Last edited: Nov 23, 2013
  18. Alex1678

    Alex1678

    Joined:
    Jan 3, 2014
    Posts:
    12
    Is there any news yet? I have seen a post about open source? I'm a .NET developer for many years now and if it will help you, I can help you out. I'm waiting for the vb.net functionality in Unity for months now :( Please respond. Thanks.

    With best regards,
    Alex van der Lans
     
  19. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Maybe you should send the code to Unity and have them officially implement it?
     
  20. Hikiko66

    Hikiko66

    Joined:
    May 5, 2013
    Posts:
    1,304
    VB.Net is a good language, but I hope nobody is putting off diving into unity, waiting for this to happen. VB.Net and C# are almost the same language, the transition is easy.
     
  21. SnowDaySoftware

    SnowDaySoftware

    Joined:
    Mar 25, 2013
    Posts:
    11
    I was thinking the exact same thing. I've been a VB.net dev for almost 8 years now and making the switch to c# was extremely easy. If you understand vb code, it won't be hard to learn the c# syntax.
     
  22. IvanDonets

    IvanDonets

    Joined:
    Feb 19, 2014
    Posts:
    117
    Dear developers of VB.NET support for Unity3d...
    I'm happy that you want to add support to it, though, of course I am not so happy as I could, as I see the project is stopped...
    If you need some good reasons why I or other people may need VB.NET support in Unity3d - then let me tell you my story,
    so you may become enthusiastic to add support to vb.net to unity3d in coming few monthes...
    well, let me indtroduce myself a little. I am jusr some 29 years old, and my hobby is programming. When I first got a computer at home, I spent a lot of time by it, and finally I "got deep" into its software, and got interested in programming. Though, I don't know why my first book was on Visual Basic. It was back in some mid/end of 90-es... I tried to learn few different programming languages - including as complicated Assembler, LISP, also I've read books on programming in C/C++, C#. But it was all much more complicated then VB. So VB.NET is my favorite now.
    Now, why I like programming. This can be interesting to you. I studied Chinese in my first school, then in second one, we had prograaming classes (2 years), and got acquainted with "applied religious philosophy" - scientotlogy. It's founder - Ron Hubbard, was also some scenarist and movie-maker, so proposed an idea, that "any complicated text can be explained using demo-kit"... It means one can make a movie from a text, or at least make pictures for some stories. Or make, say, sculptures for some persons in a book. You know, Alice in Wonderland? Alice said - "a book without pictures and converstaions is not interesting"... So Chinese+scientology, created interesting mix in my mind, and I thought - is it possible to make a program (well, probably using artificial intelligence), which can Automatically convert text into 3d-animation/speech. ...
    Time passed, I gave this idea as utopia at some point and got deep into religion. Still, I stuck with a problem - Aristotle said: "God/Zeus is good, but other sciences are more important"... So at least, we are sure that one needs good health, medicine science even to be able to go to church etc etc... Thew balance of the two parts of life is to feed both "material and spiritual food" - for body and spirit... So I was thinking - what should be my job? How would I earn money etc? What should be my proffessional orientation? What should be my profession/job? So I again and again came back to idea of programming, artificial intelliegence, and this "automatic text to movie" conversion program...
    Finally, after spending few years on philosophy department, and after some classes on mythology - I decided - well, it is indeed so that ... movie is much more interesting than just a book... Why not try to make that program which I wanted some 10 years ago (or more)?... So I went to different people, students and told them about my idea. I talked to one guy who programmed computer graphics, and told him my idea. He said - "well, I don't think that to program graphics is such a hard idea. It is much more complicated to automatically translate text to another language, or generate commands for graphical engine out of automatic parsting text, as it is done in google translate etc..." so he told me: "well, just tell me. let's take easiest sentence: A man is walking on the street. So how program will analyze it? How it will detect at least walking man?"
    So I understood - well, I have to go to animation department in some university and ask if what do they think about the idea...
    So when I was on one of such animation departments, I told the whole idea - that "I'ld like to make a program which can automatically convert books into movies!"... Students didn't like it much, at least few - they said - "so, then what we are doing here? we are making all these - drawing characters, sprites of cartoons etc - manually? Can you imagine how many Chinese you should hire to make this work?"
    However, I am sure that they told of the idea to their teachers.
    So, when finally I was about again give the idea up, I got to kow that one Russian company (yes we are from there), Bazelevs Innovations, started a project - "Film language"... And just almost everything which they presented in their presentations - sounded just like what I was talking about to those students/teachers in animation department in cinema institute. though - you may believe it or not - it is up to you...
    I intentionally disclosed this idea to people - so that at least I can see - so what will happen? Will at least one company make this possible - what I wanted to do? this "automatic text to movie conversion program"? Yes, Bazelevs innovations did it!
    I tried myself to find some investors or make own compnay =-( though it was hardly possible. But Bazelevs did it. Well, I am happy for them.
    Sometimes it is said - "some innovations are happening in the world simulataneously in different places".
    So of course Bazelevs also helped to make this work - they applied their proffessional knowledge to let it work the way I didn't imagine...
    Actually it was done quite fast... Probably due to financial support from Skolkovo Fund... They gave millions of dollars for this Filmlanguage project...
    But I should tell that they themselves are not really aware of what it is all? is it a movie or is it a game or a cartoon? they can't explain...
    But I can. However. To make this all happen, for this project to develop, I need to use some tools which I am familiar with...
    So I went to FilmLanguge site - http://www.filmlanguage.net/we-need-a-programmer.html
    - and you can see that they require a progammer who can guide the core development of this project... Well, good, I hope this is for me...
    Though of course. There are many problems. Keeping aside criticism that "this is not possible, artificial intelligence is unethical atheism,
    are you trying to control humans with your robots, AI like in the matrix? are you not afraid of Matrix scenario?..."
    But I am not... For example I can quote Dalai Lama who blessed Avatar-2045 projecy in Russia which is to help people go on their life - even though in artificial body... Just like in a movie avatar (if we accept that avatar in movie "Avatar" mean "robot of a future".)...
    On http://www.filmlanguage.net/company it is written -
    --
    First there are several things you should know about us:
    Yes, we are aware that the idea sounds crazy
    Yes, we know it is impossible to create artificial intelligence (even though some of us disagree with this statement)
    Yes, there are 100500 straight facts why this is not going to work
    Yes, we still have a plan of how to implement it
    Yes, we do have a working prototype (+ several patents pending).
    --
    So, on one hand there is nothing artificial in the whole idea of automatic translation of text from one langugage into text of other language...
    And yes, Film Languge has to convert text from natural language into language of Unity3d (plust Text-to-speech like in Microsoft agent)...
    And it works! Paramount Comedy licensed Film Language technology for their "chromo sapiens" serial cartoon - it is completely generated by scripts which are entered by users... Though it has a limit - just two robots (teapot and iron etc)...
    So how it can be developed in future?
    Bazelevs innovations say that they did - probably with no commercial interest - but it was just interesting for them to do...
    And they said - "it is fantastic! it is a wonder! just write few sentences - and computer generates 3d animation movie/cartoon and text-to-speech from it"...
    ...
    So, I want to go to their office and try if I can work there...
    But of course there are some requirements which they demand from someone like me:
    http://www.filmlanguage.net/we-need-a-programmer.html
    "
    Our Moscow office is looking for a talented, ambitious, self-directed developer who will guide the fundamental development of the FilmLanguage, which we believe will change the way people produce animation and visualize creative ideas globally:

    - Specialist should have extensive programming experience and should be excited and challenged by the opportunity to build a remarkable new technology from the ground-up.
    "
    this is all right, but:
    "
    Requirements:

    • Deep knowledge of C++. Practical experience 3+ years.
    • Experience with game engines and 3D graphics.

    Pluses:

    • Knowledge of С#
    • Experience with Unity 3D
    "
    this is something which can be an obstacle... so can you imagine? I shared this idea for free with people in animation production, and they just are now telling me - what do they require from me...?

    so... I know only Visual Basic .NET... I can study other languages, but they are more complicated for me...
    I tried to make small programs in Unity3d in SharpDevelop (same files can be opened in MS Visual Studio, and auto-completition of syntaxys works - and this is very helpful! so even C++/C#/Boo/JavaScript sourcecde in Unity3d looks very familiar to what I am get used to - Visual Basic.Net with autocompletition... )... So ... I would be happy to learn Unity3d - but I was unable to find good manuals with good example. Eother have to download complicated games - and it takes hours to analize the code... Or I have to read manuals and try to make a code line by line - it is also hard...
    So some balance is required... I hope Visual Basic can make, indeed, Unity3d programming much much more accessible to poeple like you...
    And if you want your Unity3d programs to be easily programmed using... probably even FilmLanguage - then why not add support for VB.NET?

    Actually what I think could be great... Can You imagine that in unity3d you can just write a code similar to... Say, let's take a quote from philosophy
    "
    <filmlanguage>
    Aristotle: Plato is a frined to me, but Truth is more important
    </filmlanguage>
    "
    Or some thing like that, and Unity3d has some built in 3d character of human, it reads a line "Aristotle: ...",
    finds a text before ":" and open system registry (I do it on this level - for MS Agent - as it doesn't require recompilation, and changing of some core ideas is easy - through system registry... Though of course I know some specialized database can be much more useful)... - find a key "Aristotle" and necessary file for it - "Aristotle.acs" (this is a file in MS Agent, for Unity 3d it can be some Aristotle.fbx as far as I can understand... or it can be human.fbx, and just Aristotle.jpg to be showed somehwere on a side, botton etc - as illustration that it is he, and not someone else...) - and Avatars.Characters(AvatarName).Load, then Avatars.Characters(AvatarName).Show, where "AvatarName = Aristotle" or anyone else instead of Aristotle...
    So I do this simple program in Visual Basic and use Microsoft agent to make it work... It was my small dream (and hope not a utopia) some 10 years ago, and not it is slowly coming true - with help of ms-agent technology, filmlanguage of Bazelevs Innovations, and Unity3d...

    So if you would be so good to add support of VB.NET to Unity3d - I'ld bless you with all the possible blesses in the all unverses =-)
    yes... I can tell you why this all can be necessary...
    This is a ...secret. but well, spiritual knowledge must be free. so...
    One of our spiritual master - A.C.Bhaktivedanta Sami Prabhupada - wanted to make "Temple of Vedic planetariaum"...
    As you know - Bible, Quran and Torah - they sometimes conflict with astronomy (I don't speak of astrology here, as it is a little supernatural subject),
    but Buddhism and Vedas do not have such problem...
    You know. Albert Einstein also read Vedas and praised them...
    And Henry Ford, founder of Ford motors company - Henry Ford also liked reincarnation and karma idea - just like in buddhism and in Vedas...
    And a grand-son of great Henry Ford - Alfred (http://en.wikipedia.org/wiki/Alfred_Ford) was and is a disciple of A.B.Bhaktivedanta Swami Prabhupada and financing temple of Vedic planetarium (so some critics may say that "Ford was materialist or Marxist", but the truth that he believed in reincarnation and his grandson - Ambarisha das gave millions dollars for temple of Vedic planetarium - (great scientific project) - to be built... Prabhupada is like Dalai Lama in buddhism, and he wanted this temple to be opened. For the good of all the people in the world... )
    So it looks that just simply people of other religions are criticised that they believe in "false God" and they someone considers if one doesn't believe in God of some religion - then he is atheist for that religion. that is not really so at least for India. Indians respect all religions. Prabhupada respected Jesus, Mohammad, Buddha as avataras...
    yes. in Unity3d there is such a thing as "avatar controller" and possibility to "control avataras"...
    Though I don't really know what do you, developers of unity3d mean by this?
    Avatara - as per Vedas - is descending of Lord Vishnu into this material world.
    Lord Krishna in Bhagavd Gita said - "when religion falls down, and atheism rises - then I descend as avatara to save those devotees who believe in Me, and punish miscreants"...
    So in this sense, created or add avatar to Unity3d is still a good idea. I talked to one atheist - he said that he was not interested in drawing any avatara, making scupture of Vishnu, Krishna etc. Atheist was not interested - he just wanted to draw some "landscape" etc instead of Avatara...
    so, maybe in this sense unity3d has a right to use term avatar-controller - I'm still not sure...
    Problem is that is we try to control avatar... Usually it is not possbile...
    Founder of Bazelevs company, which creted FilmLanguage - Timur Bekmambetov - said : "well, it is a new reality, this Film langugae creates new rality from languages... But we can't control it 100%"... and it is true - one can't control avatar 100%. it depends on wich of avatar (God) Himself...

    So why did I write all this?
    Hope you understand. We just ned a great scientific and spiritual project - temple of vedic planetarium. And it needs some elements of artificial intelligence available in unity3d... and I am almost 100% sure that it will require film-language to amke this all done...
    And if anyone at least wants that film-language be developed - I ask them (or maybe even pray) that they include Visual Basic support into unity3d...
    if it is so hard...
    then think of including it as payed option (but please don't make it expensive, because "Anonymous Hackers group" will surely crack it like they did with FBI... joke =-) I am not a hacker =-) I am afraid of illegal activities like hacking. )...

    Or, if you need some people to help you add VB.NET support into unity3d - I can be a tester for this.
    Just write a manual how to make a dll plugin to support VB net in unity 3d and will ty to do it... at least if not for the whole options which are available in all languages like C#, but at least for avatar controller, avatar loading, loading files, reading strings etc...

    I can even give you a code which I'ld like to see in unity3d in Visual Basic (Sharp Develope or whatever it may be)...

    (see next post)
     
  23. IvanDonets

    IvanDonets

    Joined:
    Feb 19, 2014
    Posts:
    117
    This is a code which I made in C#:
    file is called :
    Text_to_3d_Animation.cs

    content:

    Code (csharp):
    1.  
    2. //This is Unity3d program
    3. using UnityEditor;
    4. using UnityEngine;
    5. using System.Collections;
    6. using System.IO;
    7. using System;
    8.  
    9.  
    10.  
    11.  
    12. //Global variables, functions etc
    13. public class Lego_Text_to_3d_Animation : MonoBehaviour
    14. {
    15. public  string CURRENTLINE;
    16. public string INPUTFILE ;//="C:\\";
    17.  
    18.    
    19.  
    20. // Start text-to-3d-anim
    21. void Start ()
    22. {
    23. {
    24. INPUTFILE = EditorUtility.OpenFilePanel("Choose text file (will be converted to 3d animation)","C:\\","txt" );
    25. }
    26.         Debug.Log("bla", gameObject) ;
    27.        
    28.            
    29. }
    30.  
    31.     void OnGUI()
    32.     {
    33.        
    34.        
    35.              if (GUILayout.Button("Convert text into 3d animation"))
    36.             {
    37.     //            GUILayout.Label ("KRISHNA!");
    38.                 INPUTFILE = EditorUtility.OpenFilePanel("Please, choose a text file","C:\\","txt" );
    39.    
    40.             }
    41.        
    42.        
    43.        
    44.     UnityEngine.Transform AVATAR;
    45.        
    46.     AVATAR=GetComponent(typeof(UnityEngine.Transform)) as UnityEngine.Transform ;
    47.      
    48.        
    49.        
    50.     AVATAR.animation["idle"].wrapMode = WrapMode.Once;
    51.     AVATAR.animation["jump_pose"].wrapMode = WrapMode.Once;
    52.     AVATAR.animation["walk"].wrapMode = WrapMode.Once;
    53.     AVATAR.animation["run"].wrapMode = WrapMode.Once;
    54.  
    55. //  float targetMovementWeight = 0f;
    56.  
    57.        
    58.        
    59.         //-------------------
    60.        
    61.        
    62.        
    63.        
    64.        
    65.         //CURRENTLINE.
    66.        
    67.        
    68.    
    69.        
    70.        
    71.        
    72.        
    73.         //---------------------
    74.        
    75.        
    76.        
    77.        
    78.     System.IO.StreamReader LINEREADER = new System.IO.StreamReader(INPUTFILE);
    79.        
    80.        
    81.         while ((CURRENTLINE = LINEREADER.ReadLine()) != null)
    82.         {
    83.      
    84.         //  GUILayout.Label("Hare Krishna! File: " + INPUTFILE + ". Animation: " + CURRENTLINE);
    85.  
    86.            
    87.    
    88.                 string s = CURRENTLINE;//"Krishna goes to Arjuna";
    89.    
    90.            
    91.             //it works!:
    92.              // GUILayout.Label(CURRENTLINE);//word);
    93.              
    94.                 GUILayout.Label("Krishna " + CURRENTLINE + "s");
    95.             //it works, but I dont want to duplicate same txt
    96.            
    97.            
    98.    
    99.            
    100.     //
    101.     // Split string on spaces.
    102.     // ... This will separate all the words.
    103.     //
    104.     string[] words = s.Split(' ');
    105.     foreach (string word in words)
    106.     {
    107.         //Console.WriteLine(word);
    108.     //  GUILayout.Label(word);
    109.      // GUILayout.Label( word);
    110.            
    111.            
    112.            
    113.            
    114.             if (word == "goes")
    115.             {
    116.         AVATAR.animation.Play("walk",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    117.         //  GUILayout.Label("Krishna " + word +"! Animation: " + CURRENTLINE + INPUTFILE );
    118.  
    119.                
    120.             //  AVATAR.animation.CrossFadeQueued("walk" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    121.    
    122.             }
    123.                
    124.                 else if (word == "run")
    125.             {
    126.             AVATAR.animation.Play("run",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    127.         //  GUILayout.Label("Krishna " + word +"! Animation: " + CURRENTLINE + INPUTFILE );
    128.      
    129.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    130.  
    131. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    132.        
    133.             }
    134.                
    135.                     else if (word == "went")
    136.             {
    137.             AVATAR.animation.Play("walk",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    138.         //  GUILayout.Label("Krishna " + word +"! Animation: " + CURRENTLINE + INPUTFILE );
    139.      
    140.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    141.  
    142. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    143.        
    144.             }
    145.                
    146.                
    147.                
    148.                
    149.                 else if (word == "Krishna")
    150.             {
    151.                 //    if (GUILayout.Button("Hare Krishna!"))
    152.             {
    153.        //         GUILayout.Label ("KRISHNA!");
    154.             }
    155.         //  object Krishna =     Resources.Load("c:\\VedaViz3d\\Resources\\Krishna3d" );
    156.                    
    157.                    
    158.                    
    159.                    
    160.                    
    161.                    
    162. //          AVATAR.animation.Play("run",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    163.      
    164.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    165.  
    166. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    167.        
    168.             }
    169.                
    170.                
    171.                
    172.                
    173.                
    174.                
    175.                
    176.                     else if (word == "came")
    177.             {
    178.             AVATAR.animation.Play("walk",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    179.         //GUILayout.Label(CURRENTLINE);//word);
    180.     //  GUILayout.Label( word);
    181.    
    182.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    183.  
    184. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    185.        
    186.             }
    187.                
    188.                  
    189.            
    190.    
    191.            
    192.     }
    193.    
    194.            
    195.            
    196.            
    197.            
    198.             if (CURRENTLINE != "")
    199.             {
    200.             }
    201.        
    202.             if (CURRENTLINE == "walk")
    203.             {
    204.         AVATAR.animation.Play("walk",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    205.      
    206.                
    207.             //  AVATAR.animation.CrossFadeQueued("walk" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    208.    
    209.             }
    210.    
    211.             else if (CURRENTLINE == "run")
    212.             {
    213.         AVATAR.animation.Play("run",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    214.      
    215.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    216.  
    217. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    218.        
    219.             }
    220.            
    221.                     else if (CURRENTLINE == "idle")
    222.             {
    223.             AVATAR.animation.Play("idle",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    224.    
    225.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    226.  
    227. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    228.        
    229.             }
    230.            
    231.                     else if (CURRENTLINE == "jump")
    232.             {
    233.             AVATAR.animation.Play("jump_pose",PlayMode.StopSameLayer);//,targetMovementWeight , 0.5f);
    234.    
    235.                 //AVATAR.animation.CrossFadeQueued("run" ,1f,QueueMode.CompleteOthers,PlayMode.StopSameLayer );
    236.  
    237. //              AVATAR.animation.Blend("run", targetMovementWeight, 0.5f );
    238.        
    239.             }
    240.            
    241.            
    242.             else    if (CURRENTLINE == "yoga")
    243.             {
    244.         //  AVATAR.animation.CrossFadeQueued("Animation", 0.3F, QueueMode.PlayNow);
    245.             }
    246.         }
    247.    
    248.     //  INPUTFILE = UnityEditor.EditorUtility.OpenFilePanel("Choose animation command file","C:\\VedaViz3d\\","txt" );
    249.  
    250.        
    251.          if (GUILayout.Button("Convert text to 3d-animation"))
    252.             {
    253.     //            GUILayout.Label ("KRISHNA!");
    254.                 INPUTFILE = UnityEditor.EditorUtility.OpenFilePanel("Choose text (*.txt) file to be converted to 3d-animation","C:\\","txt" );
    255.    
    256.             }
    257.        
    258.        
    259.    
    260.  
    261.        
    262.        
    263.        
    264.     }
    265.    
    266.    
    267.    
    268.    
    269.    
    270.    
    271. // Update is called once per frame
    272.     void Update () {
    273.    
    274.     }
    275.  
    276.  
    277.  
    278.  
    279.  
    280.  
    281.  
    282.  
    283.  
    284.  
    285.  
    286.  
    287.  
    288.  
    289.  
    290.  
    291.  
    292.  
    293. }
    294.  
    code has some garbage in it. but it works...
    I would feel much more natural if I have VB.net syntax...

    this simple program loads a files with words like "walk", "jump", "run", "idle"
    and shows default character - "worker"
    and applies to him animation - to walk, to run, to jump, to be idle etc...
    and shows a line of text on a screen...

    I also want to add text-to-speech later (though it is a payed option I don't know which one to choose,
    and to if everything will be fine - buy MS-Kinect and plugin for it - so I can add any animation for character...
    and convert all features which I had in version which is msagent/vbnet -based - use registry reading/writing.
    loading/showing charecters, moving them etc etc... hope it is not so hard...)

    Just please if it is possible - make a manual how to add support of vb-net into unity3d...
    though... I think lisp support can also do well, or assembler (yes, it is ooftopic I know)...
     
  24. IvanDonets

    IvanDonets

    Joined:
    Feb 19, 2014
    Posts:
    117
    yes, by the way... if anyone can make " microsoft agent to unity3d " convertor, it counld be a great idea!
    and of course - with visual basic syntax...
     
  25. IvanDonets

    IvanDonets

    Joined:
    Feb 19, 2014
    Posts:
    117
    ok, I'll even include for you - a source whole project - whole source code... download it, it is simple ZIP. open unity3d version 4,
    it should work without problem...
    and I want to see that same features I have in this project are available in visual basic.net for unity3d in language
    ....
    please...
    =-)
    I give this free to you (though probably it is not hard for you to make it but you may like it as it is interesting! )
    why not make VB-net for unity3d support?

    If you add it, Gods will bless you and whole of Unity3d company... =-) and many your relatives and friends and many generations after you =-) =-) =-) :p
     

    Attached Files:

    Last edited: Feb 19, 2014
  26. HasinduLanka

    HasinduLanka

    Joined:
    Oct 4, 2017
    Posts:
    6
    Oh come on. Plz Plz PLZ give use VB.NET into Unity. It would be a great thingy
     
  27. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    No. And I'm locking this.
     
Thread Status:
Not open for further replies.