Forum Thread
  Posts  
Learning C# or Unity engine first? (Forums : Coding & Scripting : Learning C# or Unity engine first?) Locked
Thread Options
Jun 30 2015 Anchor

I am about to embark on learning C# and I was just wondering what peoples thoughts were about learning C# first then the unity engine or doing it vice versa, or even both at the same time. I am having trouble following the flow of code in the terms (Classes, Structs , Namespace). Any advice or input would be awesome!


Thanks,

Chris

Jul 1 2015 Anchor

If you're already familiar with programming then I see little advantage to learning C# before starting to use Unity. For example, I had never used C# before I started working in Unity, and I picked it up along the way. C# is very similar to languages I already knew, like Java and AS3 (Flash).

Edited by: jhocking

Jul 2 2015 Anchor

Namespaces are like a wrapper for a group of Classes and/or Forms, Components

For instance, a Game with 3 sensible namespaces:

Namespace MyGame >> runs the actually game (This will become your main EXE usually)

Namespace MyEngine >> classes that defines Sprites, Maps, Levels and maths functions (This will normally become a DLL)

Namespace MyEditor >> Tools that avoid hard-coding, usually Forms. A Level Designer, Sequence/Slideshow Builder, Modders, etc. (An additiional EXE that may or may not be available to the players)

in Addition you have system Namespaces: e.g. Windows, Unity, MonoGame (open-source XNA), etc.

Jul 10 2015 Anchor

My answer is a little bit more boring, but learning a little more about C# before unity could help a lot.

You don't want to be in a position where you know what you want to do, and how to do it in Unity, then have to work out simple basics on how to write the code! Beyond that, Unity also supports javascript, so you might want to consider using that instead?

Nov 20 2015 Anchor

If you are comfortable with any language that looks more or less like C#, it isn't too hard to pickup. If you have trouble with it and start learning the other features of the engine first, you are going to bump into C# again soon anyway.

Dec 11 2015 Anchor

If you are having trouble following the flow of the code, that means you may have to learn C-style programming in general (and C# if you wish to) before working on a Unity project. It really does not have to be C# language itself.

As others previously noted, knowing C# alone is not such a big deal, but it really helps a lot. If you are unfamiliar with any kind of programming, perhaps you should try to dry-code a few simple applications/programs in C# or other similar C-style languages (such as C++, Java, etc) before setting your sights on some serious coding work.

Dec 15 2015 Anchor

Back in Jul when I first commented I was only begining to use Unity. I personally feel that there are some great tutorials on youTube for learn Unity and C# at the same time. Try and find ones that complete a game in 10 or less 15 minute tutorials.

Feb 2 2016 Anchor

It`s easy to learn c# basics, using unity`s official tutorials on this page: Unity3d.com

Feb 2 2016 Anchor

I would suggest you to watch tutorials on Youtube and learn C# along with Unity, it would be more pratical in my opinion and you could even manage to make small games or at least small components that you can refine in future and use/reuse in your projects.

In particular, I would suggest you Brackeys: He does cool tutorials (lately in C# but even the older ones in javascript can be used as an exercise for you to learn C# by converting, or just follow along and do a similar structure in C#);
If you are aiming for 2D, JesseEtzler0 and rm2kdev also made some tutorial series in C# divided into episodes, it might be long to watch it all but it will surely be worth it and you will learn plenty of useful things.

Feb 3 2016 Anchor

You could do booth, but you will need C# for Unity, then you should learn it first.

Feb 4 2016 Anchor

If you're looking to learn Unity it is helpful to have a knowledge of programming as a whole before hand, though it is entirely possible to learn it along the way. Also, as a side note, learning C# as your starting language will help you a lot in the long run - stay on that path! :P

Feb 13 2016 Anchor

I'd say you can totally learn both Unity and C# at the same time. That's what I did, and Unity offers plenty of resources for getting started with Scripting with

both C# and JavaScript. It will probably help you understand the flow of code better too.

Hope your learning goes well.



----------------------------------------

Groovy Invaders

May 6 2016 Anchor

I`d learn the basics of c# first, this is the free book I started with.

Robmiles.com

Sep 1 2016 Anchor

I am putting together a team of indie db to start creating games to sell if your interested hit me up at relecinteractive@gmail.com

Nightshade
Nightshade Senior Technical Artist
Sep 2 2016 Anchor

I don't see any reason why you should go through a C# course doing boring things such as calculators and contact calendars. This course covers everything that you need: Udemy.com

Edited by: Nightshade

--

Senior Technical Artist @ Massive - a Ubisoft studio
Portfolio | LinkedIn

Silfaran
Silfaran Trump In Programer.
Jan 13 2017 Anchor

You will learn c# while you learn Unity3D

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.