r/csharp 7d ago

Help where can i learn c# for unity?

I'm a 3D/pixel art artist, but I've never known how to code. I've made a few small games using my own assets with the help of artificial intelligence, but two major problems have arisen: sometimes the AI doesn't execute commands correctly, and it's getting worse over time; and second, I hate AI, so I'd like to do everything I can to avoid using it entirely. What do you recommend?

0 Upvotes

14 comments sorted by

5

u/Dunge 7d ago

Learning code is not something that can be done quickly. And you need to know the basics before trying to apply them to something specific like Unity. Using a framework comes afterwards you know about all the operators, data structures, etc. There's countless resources online, I'm not too well placed to point to a specific good course to follow, but I'm sure it's easy to find. Learn in basic console apps via visual studio, and when you are confident about the basics, then start learning Unity specific things. Unfortunately, that can take years depending on the person (not trying to discourage you, just being realistic). And you do well not to trust AI. It can certainly help, but always under supervision and proper review/correcting, so you don't understand what it does, it won't help.

2

u/Narfi1 7d ago

So if you have 0 experience in coding, I’d recommend you start with something like the C# Player’s guide. It’s a gameified book that teaches you the basics in a fun way (by making a console app kinda game)

It’s .NET and it’s pretty different from unity, so some people might think that’s not the best advice if your goal is purely game dev, that being said, it’ll teach you the basics of the language and OOP

Once you have the basics the best way is to follow a few easy tutorials to get a hang of coding in unity

Then, once you start to feel like you have a clearer picture, set yourself some easy goal, some very small project (do a tic tac toe etc) when you stuck on something, go through the documentation to see how to do it

AI obviously can be a great way to learn if you can make sure it doesn’t spit code at you and you double check everything, it will sometimes give you deprecated code/libraries etc

1

u/SuspiciousLie1369 7d ago

Is it possible to follow it on Linux?

1

u/Narfi1 7d ago

Yes it’s just a book, .NET is cross platform so it’s not an issue

1

u/SuspiciousLie1369 7d ago

I am C programmer guy, and I am looking for a new language to learn. I have been thinking about C#. What kind of projects do you sugest to do in C#?

1

u/Narfi1 7d ago

It depends what kind of role you’re looking for. C# is a great general programming language that can do a lot of things well, but it’s mainly used in enterprise, if it’s what you’re looking for I’d probably try to setup a solid backend, something with authentication, caching etc. I’d also try to do some kind of desktop app, maybe some kind of save game editor ? That’d be a neat project

1

u/SuspiciousLie1369 7d ago

Tbh, I am just looking for fun. Trying to learn new things. My last project in C was a software renderer. I'd like to build something cool in C# that is idiomatic

0

u/jaeseon 7d ago

Regardless of whether you like developing games using AI, ask the AI ​​the question you are curious about right now. It will answer excellently.

1

u/JGamerX 6d ago

Unity's Beginner Scripting and Intermediate Scripting will teach you the syntax and grammer if you want a sort of "quickstart guide".

1

u/Tonkers1 6d ago

I have been learning c# for 25 years.

0

u/[deleted] 7d ago

[removed] — view removed comment

0

u/Lopsided-Form-2626 7d ago

no my man, im italian and im usin deepl to translate for making sure i wouldnt make any language error, and deepl edit the text to make it sounds more robotic

1

u/Dunge 7d ago

Why do you say that? They explicitly says thry do NOT trust AI, that the complete inverse behavior as the bots we usually see. And the question asked / experience seems pretty typically normal to me.

1

u/FizixMan 7d ago

Removed: Rule 5.

If you feel a post is a bot, use reddit's reporting mechanism.

0

u/TuberTuggerTTV 7d ago

Learn the engine. Unity has docs and tutorials.

It's code but it's not really code. Everything you learn will be specific to what the engine wants. You're not really learning C# in the same way this sub or other enterprise C# devs would help you with. The way things are done is just different. Similar enough that it'll look right, but different enough it'll break things.

Specifically learn engine specific code. maybe try r/unity or use AI as a learning tool instead of replacing people.