Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

New to Scripting and Unity

Discussion in 'Scripting' started by CMathews82, Aug 3, 2015.

  1. CMathews82

    CMathews82

    Joined:
    Aug 3, 2015
    Posts:
    2
    So just a quick question:

    Is there a way to find an actual list of commands or shortcuts for the commands. Such as Counter = cnt in a C# Script. Also a list that briefly describes certain things like Scripting for the GUI and such. I am basically looking for a library on scripting with C#.

    I purchased a couple of books both are 900+ pages, but they only really cover the basics of variables and calling a variable, and things as simple as this and then they jump into ASP and stuff like that.

    I have used the Unity Documentation section on the website, but it's not quite what I am looking for.

    Sorry if this is hard to understand first time asking a question about this stuff as well.
     
  2. Arcatus

    Arcatus

    Joined:
    May 27, 2015
    Posts:
    45
    For me the difficult part isn't to find what I am looking for, but to know what I need to look after. Microsoft MSDN and google is your best friends - if you know what to put in the seach field.

    "Briefly descibing" something isn't going to provide much usefull info:
    If you are trying to make a toaster the brief explanation would be "Uses current to heat up bread. It is mostly made of plastic and metal". It is not helping at all.
    If you want to make a toaster you first have to make copper wire. How to do that isn't described in any toaster manual. They probably don't even mention that copper wire is essential for the operation of a toaster.

    So; Google has lots of info on how to make copper wire. but almost none on how to make a toaster. So start tiny; with something that seems completley unrelated, and it all starts to make sense.

    I started out with the unity tutorials https://unity3d.com/learn/tutorials. If you haven't done all of them allready that is a great place to start. Note that some of them isn't completly compatible with Unity, and they slightly break. Take that as an addional challenge :)
     
    lede701 likes this.
  3. lede701

    lede701

    Joined:
    Mar 22, 2013
    Posts:
    2
    In your example of Counter = cnt this kind of feature would be up to the individual programmer and there could be billions of these kinds of things. If you have seen this example in code then it means the programmer wants to set the variable Counter to the same value as cnt. Even though C# doesn't have a lot of limitation on variable name sizes many programmers would rather use an abbreviation instead of type the full word out. Bottom line we get lazy.

    Depending on your goals the books should give you a solid foundation of the C# language. The next step for you will be recognizing the difference between a language feature and a programmer feature. As for starting with building Unity3D scripts have a look at the video tutorials they have on the website at:

    http://unity3d.com/learn/tutorials/topics/scripting

    Also one tutorial I have found very insightful is:

    http://unity3d.com/learn/tutorials/projects/space-shooter-tutorial

    The author has done a fantastic job at giving the basics of how Unity works plus he does a lot of explanation on how C# and Unity work together to build a game.

    After you understand how all this go together then start to test your skills by thinking about a game problem you want to solve then focus on making it. When you have more specific problems your trying to solve post them here. The mopre specifics you provide the better the response will be.
     
    Last edited: Aug 3, 2015
  4. CMathews82

    CMathews82

    Joined:
    Aug 3, 2015
    Posts:
    2
    Thank you, I appreciate the advice. Maybe I should rethink about how I want to approach this then. I have watched almost every video tutorial on unity3d.com, but maybe I just missed something along the way.
     
  5. Arcatus

    Arcatus

    Joined:
    May 27, 2015
    Posts:
    45
    Watch the vid's but type the code and replicate the result. Don't copy and paste the scripts, but type the code yourself. This will help getting the code into the "fingers" and familiarize yourself with unity much better than by just watching someone do it.

    Pause the vids and go back if you missed a part. Or google it if you want to know more abaout a topic. "Quaterni-what?"

    And, as soon as you feel you are up to it; spin further on a concept. I found that the space shooter was great for this; it even ships with models that are not used by the tutorial, so you can build your own enemies from them.