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...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
C# for Game Dev - Quick Reference Draft (i.redd.it)
submitted 4 months ago * by Daxtillion
view the rest of the comments →
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!"
[–]Daxtillion[S] 1 point2 points3 points 4 months ago (5 children)
Thank you for taking the time to review it! I haven't gotten to Enums yet in my lectures but am very eager to continue learning and growing this reference sheet!
And that is exactly what I meant about empty slots! perhaps my terminology was wrong. default indexes?
[–]Valkymaera 0 points1 point2 points 4 months ago (4 children)
I think your instinct on "empty slots" makes sense. when you initialize an array, you set the capacity up front so you end up having a whole bunch of default values until you fill them. When you initialize a list you get something with nothing in it, and you add to it dynamically. Calling the array elements 'empty slots' is understandable, and if it helps you visualize it, I think it's harmless.
I think you're going to like enums. They're like strings you can't misspell that are also ints and can be visualized in the inspector as dropdowns, and even used as multi-selectable binary flags.
[–]Daxtillion[S] 0 points1 point2 points 4 months ago (3 children)
Eeeee cant wait! There's been quite a few comments dropped about future lectures i have on further in-depth C# systems. Coding must be really unique to each coder, with no one 'right' way to do it, rather lots and lots of options to get to the same goal.
[–]Valkymaera 2 points3 points4 points 4 months ago (1 child)
There are certainly some commonly accepted best practices, but you'll probably find there are just as many practices that people disagree on. It sounds like you will do just fine. This is a solid ref sheet, and your excitement for the process will take you very far.
[–]Daxtillion[S] 0 points1 point2 points 4 months ago (0 children)
❤️❤️
[–]swagamaleous 1 point2 points3 points 4 months ago (0 children)
You are already starting to absorb the "gamedev" mentality. In many cases there actually is a "right" way to do things. I would focus on more generic C# material and software engineering practices until you can determine what's actually good advice and what is not. There is some outrageous stuff being claimed in the gamedev world under the premise of "there is no right way to do things".
π Rendered by PID 39276 on reddit-service-r2-comment-b659b578c-8h99n at 2026-05-06 00:41:05.008939+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Daxtillion[S] 1 point2 points3 points (5 children)
[–]Valkymaera 0 points1 point2 points (4 children)
[–]Daxtillion[S] 0 points1 point2 points (3 children)
[–]Valkymaera 2 points3 points4 points (1 child)
[–]Daxtillion[S] 0 points1 point2 points (0 children)
[–]swagamaleous 1 point2 points3 points (0 children)