Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Scripting API not showing some code in C#

Discussion in 'Scripting' started by Caelorum, Sep 21, 2014.

  1. Caelorum

    Caelorum

    Joined:
    Feb 6, 2014
    Posts:
    32
    At the moment i'm trying to convert all of my code from JS to C# because the tutorial I was on to learn Unity was only in JS. I'd much rather learn and continue to use C# because of it's adaptability and usefulness.

    However, when trying to search certain things in the Unity API, like the string variable, I only get coding examples in JavaScript. How am I supposed to learn certain syntax if I can't see examples of the code in C#?
     
  2. BmxGrilled

    BmxGrilled

    Joined:
    Jan 27, 2014
    Posts:
    238
    You can access the script reference from within Unity, help menu -> script reference... then in the top right corner you click on the language you want examples in (shows up when you go to some function or class or w/e). Hope this helps! :)
     
  3. Tesar

    Tesar

    Joined:
    Feb 18, 2015
    Posts:
    8
    Hi, I have the same problem. The same thing happens in the offline version suggested by TwixEmma. Its pretty frustrating since I just need to see a syntax of one line of code and I cant figure it out.

    The problem does not happen everywhere in the scripting api apparently, but I encountered it here:
    http://docs.unity3d.com/ScriptReference/Editor.html
     
    Last edited: Feb 18, 2015