Ive got java and c++ exp... idk what to do now

ive spent about 3 months each learning java and c++. I learned using text books and online resources. I pretty much stopped both languages at the point where they begin teaching graphics (i get how classes objects and methods/functions work with eachother. and im decent with what i guess could be called “data manipulation”). in my opinion these languages had a lot in common as far as logic structure ( classes, objects, and methods/functions) and even some syntax. im also self aware that my opinion is baseless due to the fact im not sure how other languages match up.

my main reason for coming to unity is to get an initial understanding of game engines.

other than java/C++ built in libraries, im used to having a blank canvas with everything up to me.

to my understanding, using unity is like working with a project that’s 90% complete, and my job is to use their created resources to finish the job how i see fit. im intimidated by such a large library of premade functions/classes (or whatever these other languages call them)

whats recommended as far as scripting language for me? im not looking for speed, just something that wont flip me on my head as far as past exp goes.

thanks for any help :slight_smile: and hello to you fellow ppl :heart:. ive jumped head first into programming with no real motive all i wanted was a hobby and i must say, OMG why didn’t i start this sooner i love it so much. you’re never getting rid of me!!

I’d say C# because it was basically inspired by the two languages you speak of. You should feel right at home with the C# syntax, just the unity part might take some getting used to. It might be tricky to understand that everything you write is a component, all scripts derive from MonoBehaviour, scenes are made out of gameobjects, and a few other little things like that.

cool thx, so i assume that this monobehavior is like a master “class” of doom. however i don’t understand what “scripts” are… i thought script = source file. but now im lost. are scripts like functions/methods? are they a group of functions /methods? is it just a standard word used to describe a user created function/method (outside of standard libraries)? those are all my gueses lol, playing pin the tail on the donkey here :slight_smile:

Read the docs and do some tutorials.

–Eric

Yea a script just another name for a text file that gets compiled. So you write your classes in a text file (script) and then send it off to the compiler which spits out a DLL. Then the DLL is sent to the CLR where it is executed.

Scripts are classes which derive from MonoBehaviour. By deriving from MonoBehaviour, you gain the following functionality (it’s late and I am probably missing something):

-Ability to attach the script to a GameObject.
-Ability to modify variables of the script in the inspector
-Ability to use Update, Start, Awake, etc., in your code
-Ability to use StartCoroutine in your code

Script may also refer to the actual js or cs file which your MonoBehavior derived class is in. In order for you to be able drag the file onto a game object (which adds a new instance of the MonoBehavior derived class to the game object), the file must have the same name as your class.

It’s important to note that you can still have non MonoBehaviour derived classes. Actually, in a lot of cases you will want to use regular classes, as MonoBehaviour should only be derived from when you need your class to have the functionality I listed above.

Hopefully that helps to get you started. Good luck!

cool, thx guys, i appreciate the help. :slight_smile: