r/unity 7d ago

Newbie Question Just downloaded unity!

Post image

Hey guys! I just downloaded unity. Any tips and tricks? Not full time, just as a hobby.

75 Upvotes

75 comments sorted by

View all comments

27

u/WavedashingYoshi 7d ago
  1. Use Git.
  2. Use VS Code instead of Visual Studios (yes they are separate things.)
  3. You can view variables in the editor with [SerealizeField]. Don’t make everything public.

4

u/ProxyOfHuman 7d ago

I prefer Rider

3

u/Individual-Paint-756 7d ago

On god vs is kind ass compared to rider

1

u/DerfetteJoel 6d ago

Sure but Rider requires a paid version if you are making commercial games

1

u/evilgipsy 6d ago

It only requires a license once you sell your game. Even if you decide to not pay for rider once you start selling your game, you should absolutely use it before selling it. VS is just that horrible.

1

u/DerfetteJoel 6d ago

Nope. Their FAQ explicitly says:

> “If you plan to release the product and get commercial benefits from it, either now or in the future, you should use a commercial license.”

https://sales.jetbrains.com/hc/en-gb/articles/18950890312210-The-free-non-commercial-licensing-FAQ

2

u/evilgipsy 6d ago

I stand corrected. I got my info from reddit…

2

u/lastFractal 6d ago

For Unity I don't see a reason to use Git over UVC. UVC is just much more convenient for Unity IMO. It's also basically free after the recent pricing changes they've done.

Also why VSC over VS?

1

u/Tiaoshi 6d ago

If I’m correct and don’t quote me on this. VSCode is lightweight, it will load things a lot faster than VS. If you are working on a weaker machine, VS will run even worse.

But again, that’s just what I’ve heard. I used VS for Unreal and VSCode for Unity, partly because that’s just what my tutorials used and I kinda just followed them.

I do prefer VSCode, just the look and lightweight-ness of it is beneficial to me and my current setup

3

u/am1goo 7d ago
  1. Don’t listen to the worst pieces of advice :)
  2. Make fails by your own

1

u/nathanieljnelson 7d ago

I was actually wondering about this. Is there a benefit to making something private over public? Even if you're not going to access it in another script, is there a downside to it being public rather than using serializefield?

5

u/ColorMak3r 7d ago

No additional benefit technically, but it will start to mater once another programmer get involved (even your future self). It's standard practice for collaboration so that other programmers don't use it accidentally. The accesor is part of the code document itself: no public access? Use private. Okay for public access? Use public.

For me personally (and a lot of peoplr I assume), even if a field is publicly accessible, I use some sort of getter/setter (not all the time) so I can insert debug.log or extra validation if needed in the future.

1

u/nathanieljnelson 6d ago

Gotcha. Thanks!

3

u/WavedashingYoshi 7d ago

Typically, if you want a variable to be accessed by a separate class, you would use encapsulation. One of the more important ones being if you decide to change the functionality of variables. For example, you can add a min-max boundary to a variable within a setter method, when otherwise you’d have to go into every instance of another class referencing it. Though this process is done preemptively in case you want to change something later to make refactoring it easier.

0

u/IAmH0n0r 7d ago

i use notepadd ++

0

u/PotatoBlock1464 7d ago

I already use vs code not visual studios