What type of C++ will i need to start with Unity?

I bought the Books. I am serious when i said i would buy the books. I also got a book on building game engines. It actually has information about Matrices, Vectors, and all the other Math needed.

But basically for this question. I am asking is it neccessary to Learn the whole C++ book? Or just some sections of it? I’ve never programmed in C++ or C# but i am going to go for it.

I mean i’ve worked with HTML5 and CSS3 and Javascript but those aren’t even programming languages. But still i am going to go into C++. And yes i am going to be using UNITY. Fact is. I am going to start using a bunch of other engines and i am going to be doing it for practice. But i am serious about at one poing actually building a complete game. And yes i am going to plan to build a game like Skyrim. I am going to focus more on the code and graphics. Forget about Music and Voices and Sound Effects. That will come later on. So will you answer my question? Or are you going to be like “nah … you can’t … you will take 200 years to build it” if you are going to say alright. Ok. But every thing starts at a beginning. THIS is my beginning. I don’t care if maybe it wont work out. Maybe yes. I will fail. But at least i will learn something. So please. Will you just answer a simple question?

What is necessary from C++/C# or any other language to build a game in Unity? At least tell me about C++ and C#.

Ok i will be ready.

THANK YOU! AND PLEASE DON’T IGNORE MY QUESTION.

AND i don’t mean type me a bunch of paragraphs. Just in a couple of sentences about what i will need from the book. The main important stuff.

OK i just found out Unity doesn’t support C++ so yeah. Just tell me about C#.

Alright. You CAN use C++ in unity when writing native plugins. This is definitely not what you’re planning to do.

Regarding C#… Unity uses C# for a scripting language. Meaning if you worked with javascript (which IS a propgramming language), you may be able to pick basics of it without any additional books.

Either way.

First suggestion would be to check out unity learning section, unity manual, and unity script reference:
https://unity3d.com/learn <<---- start with this.
https://docs.unity3d.com/Manual/index.html
https://docs.unity3d.com/ScriptReference/

1 Like

HTML, CSS, Javascript are certainly programming languages! The concepts you use with them will largely carry over to your work in C#.

Unity has a really great set of tutorials that will get you right up to speed on all the concepts you will need to get started. Have no fear, dive right in.

Take your problems 1 step at a time- Don’t start with “I want to make an FPS!” Instead, start with- “How do I check if a button is being pressed?”, “How do I make an object move?” And then put those two things together to make an object move when you press a key.

Learn simple things so that you can do complex things by doing many simple things.

“Google Fu” is also an important skill. Again, look for answers to the small problem rather than the large one.

1 Like

You need the C# kind of C++. A bit simpler and more candy coated. You could say it is the friendlier kind of C++.

1 Like

You’re going to want to pick up the basics of object oriented coding. Classes, instantiation, objects, basic extension, that sort of thing. Thankfully, all of this is C# 101. You’ll like pick up quite a bit of it just going through the basic C# tutorials. C# was designed to be an object-oriented alternative to C++. It’s also designed to be much easier to learn, with it’s automatic garbage collection.

C++ is between C and C# in terms of difficulty. It provides a lot of the low-level memory control of C, but also has the object abstraction of C#. This makes it very powerful, but also a lot more prone to memory leaks. It’s a decent balance if you need to get closer to the metal. The thing is, most modern game developers don’t need to get that close to the metal. If you’re a beginning game developer who is just starting out with Unity, you definitely don’t need to be close to the metal, and will have a much easier time learning C# as opposed to C++.

Component architecture is also something that you will need to wrap your brain around, but that is a structure that is used in Unity itself, and won’t affect learning the syntax of C#. It’s just something you have to get used to when using scripts in Unity.

Topics covered by following C# and C++ books will be good:

1- Sams Teach Yourself C# in 24 Hours

2- C++ in 24 Hours, Sams Teach Yourself (6th Edition)

Books like above cover most of the essential topics. There are even books about C# and Unity.

You can write native plugins in C++ for Unity but to get real C++ coding in Unity you will need to get source code license.

I think C++ is kind of mother language (although machine and assembly are true legends) for me so it is good to learn C++ as time permits; modern C++ is getting simple and simple with the passage of time due to new standards.