#Common stuff used if you are new

1 messages · Page 1 of 1 (latest)

elder panther
#

if anyone is new to unity, I uploaded a list of good-to-know things that are commonly used in code on my github here. Please understand that I am also new, so if something doesn't make sense, make a pull request to change it. Also I am constantly updating this, so if something is missing, I probably haven't learned about it yet.

https://github.com/Jax-Danger/Unity-Helper/tree/main

GitHub

This is a list of notes I've taken while teaching myself Unity. - Jax-Danger/Unity-Helper

raven vector
elder panther
#

I updated the md now. Can you please verify changes for me @raven vector and explain Update() and FixedUpdate() cause i'm clearly confused on that. Do i need to add more information than just Runs every frame or is it more that that?

raven vector
#

i mean, depends on the level of detail you want to go into ig

#

you also haven't fixed the formatting btw

#

for the first group you have

description
* thing
```for the second you have
```md
thing
* description
#

also from the raw markup, seems like there's a lot of places where you want to be using more periods or line breaks.

#

Print in C# is Debug.Log()
Debug is a unity-specific api

#

in Input related, you're mixing both the old and new systems, and all of the new system entries are methods that require some specific object

#

transform.EulerAngles isn't a thing, it's transform.eulerAngles

#

// Floats MUST end with an f
this is not really true, you only need the f suffix if you have decimals, where it'd infer as double, or if you need to infer the type directly as float. if you use an integer literal, that's inferred as an int, but that can be promoted to float just fine.
it is nice for clarity, but it's not required in that example

elder panther
#

I think i corrected the things you mentioned.