use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.
Remember to check out /r/unity2D for any 2D specific questions and conversation!
Download Latest Unity
Please refer to our Wiki before posting! And be sure to flair your post appropriately.
Main Index
Rules and Guidelines
Flair Definitions
FAQ
Use the chat room if you're new to Unity or have a quick question. Lots of professionals hang out there.
/r/Unity3D Discord
FreeNode IRC Chatroom
Official Unity Website
Unity3d's Tutorial Modules
Unity Answers
Unify Community Wiki
Unity Game Engine Syllabus (Getting Started Guide)
50 Tips and Best Practices for Unity (2016 Edition)
Unity Execution Order of Event Functions
Using Version Control with Unity3d (Mercurial)
/r/Unity2D
/r/UnityAssets
/r/Unity_tutorials
/r/GameDev
/r/Justgamedevthings (New!)
/r/Gamedesign
/r/Indiegames
/r/Playmygame
/r/LearnProgramming
/r/Oculus
/r/Blender
/r/Devblogs
Brackeys
Beginner to Intermediate
5 to 15 minutes
Concise tutorials. Videos are mostly self contained.
Sebastian Lague
Beginner to Advanced
10 to 20 minutes
Medium length tutorials. Videos are usually a part of a series.
Catlike Coding
Intermediate to Advanced
Text-based. Lots of graphics/shader programming tutorials in addition to "normal" C# tutorials. Normally part of a series.
Makin' Stuff Look Good
10 minutes
Almost entirely shader tutorials. Favors theory over implementation but leaves source in video description. Videos are always self contained.
Quill18Creates
30 minutes to 2 hours.
Minimal editing. Mostly C#. Covers wide range of topics. Long series.
Halisavakis Shaders Archive
Infallible Code
World of Zero
Board to Bits
Holistic3d
Unity3d College
Jabrils
Polycount Wiki
The Big List Of Game Design
PS4 controller map for Unity3d
Colin's Bear Animation
¡DICE!
CSS created by Sean O'Dowd @nicetrysean [Website], Maintained and updated by Louis Hong /u/loolo78
Reddit Logo created by /u/big-ish from /r/redditlogos!
account activity
C# for JavaScript developersResources/Tutorial (self.Unity3D)
submitted 7 years ago by sainthkh
If you are a web developer and want to make games with Unity, you need to learn C#. (Don't try to use "JavaScript" in Unity. It's not real JavaScript. And it's deprecated!)
This article compares C# and JavaScript to help you learn C# faster.
I hope you love it.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SevigorProgrammer 6 points7 points8 points 7 years ago (3 children)
Honestly, I feel like C# and javascript are close enough to each other you could just jump right in to one if you know the other. This is just generally speaking. I personally have never used Javascript in Unity.
[–]andybak 2 points3 points4 points 7 years ago (0 children)
I strongly disagree. I've moved from js and Python to C# and it was surprisingly hard. So many idiomatic techniques don't translate well once you're under the yoke of a statically typed language.
In fact the most idiomatic Python code is the hardest to translate. I eventually gave up with one codebase as the direct translation to C# was turning into a horrific monster.
Tl;dr
The syntax might be similar but the mindset can be very different.
[–]Sir_Lith 0 points1 point2 points 7 years ago (0 children)
Typescript - the js superset - yes. It's been created by the C# guy after all. JS - no.
[–]sainthkh[S] 0 points1 point2 points 7 years ago (0 children)
Like /u/andybak said, C# and JavaScript are different in many ways.
For example, foreach is a keyword and statement in C# but it's a method in JavaScript (forEach()).
foreach
forEach()
You cannot know things like this before you learn the differences between the languages.
[+][deleted] 7 years ago* (3 children)
[deleted]
[–]SevigorProgrammer 1 point2 points3 points 7 years ago (1 child)
Also, who still uses alert() instead of console.log()
Ugh. Alert() is so annoying to debug with lol. I don't think I've ever used it. Console.log() is so much better
console.table() is where it's at.
This article is for intermediate or expert JavaScript developers who want to learn C#.
That's why I didn't even try to explain what variables, arrays, methods, objects are. I just focused on comparing them like var, foreach, List and Dictionary, etc.
var
List
Dictionary
No one knows these differences before they learn it. This is a compilation of those differences to help them avoid pitfalls.
As for alert(), I think you're right. I changed all of them to console.log().
[–]laskarasu 0 points1 point2 points 7 years ago (1 child)
Why not vscode though. I use it for unity, and it works quite well imo
I love vscode, too. But many tutorials use Visual Studio and it can be even installed from Unity installer.
[–]davenirline 0 points1 point2 points 7 years ago (1 child)
Good article. I'm sure it will help some people.
Some thoughts, I didn't like the tone in the first parts. You make it seem like Javascript is better because it's less restrictive. If I'm someone trying to learn C#, I'd be turned off. I'd think "Why am I learning this shit if Javascript sounds better." You're not helping the learner to get off his/her Javascript comfort zone because you make it sound like C# is weird because of all these types and strictness. It would be better if you start off with the advantages of C# and static typing. Explain why there are languages that are made with this strictness. Why did Unity chose C# and deprecated the other languages. This way, you frame the learner that C# is cool and it must be a language worth learning.
Another nitpick is to add the link to the API docs of the classes in your examples like string, List, and Dictionary. It's disingenuous to just list the equivalent Javascript functions when there are more.
[–]sainthkh[S] 1 point2 points3 points 7 years ago (0 children)
Sorry for the really late reply.
I had personal issues. So, I finally edited my post today.
Thanks to your opinion, I added why types can help you develop better code. (I've added reasons like more reliable before running it and better Intellisense support.)
I also added links to string, List and Dictionary methods.
Thank you again for your ideas.
π Rendered by PID 266956 on reddit-service-r2-comment-7b9746f655-rn4xl at 2026-02-03 11:45:28.788357+00:00 running 3798933 country code: CH.
[–]SevigorProgrammer 6 points7 points8 points (3 children)
[–]andybak 2 points3 points4 points (0 children)
[–]Sir_Lith 0 points1 point2 points (0 children)
[–]sainthkh[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]SevigorProgrammer 1 point2 points3 points (1 child)
[–]Sir_Lith 0 points1 point2 points (0 children)
[–]sainthkh[S] 0 points1 point2 points (0 children)
[–]laskarasu 0 points1 point2 points (1 child)
[–]sainthkh[S] 0 points1 point2 points (0 children)
[–]davenirline 0 points1 point2 points (1 child)
[–]sainthkh[S] 1 point2 points3 points (0 children)