Bool or boolean and float and int and other things help needed

i was trying to learn about this wierd things
bool , int , float , var , update , awake , sleep
:frowning: and those things cant get in my head
in int and float has a lot of numbers i couldn’t understand anything
and awake and update and start and sleep didnt get anything too what is start and update
i ll really need to know it
thx for reading :frowning:

Did you try Learn game development w/ Unity | Courses & tutorials in game design, VR, AR, & Real-time 3D | Unity Learn?

Those “things” aren’t “wierd”. They are essential elements, tools what have you, to programming. If you can not get a grasp on them, you have no hope in programming. I am not saying you have no hope, but if you can’t learn them, try accounting.

Cheers!

First is this. Approach it as a language. Learn the fundamental elements and building blocks of code and you should be well on your way.

i know i know
i tried to understand it but i need someone to make it easier for example
bool = true or false thats easy one couse its true and false
but
what’s the difference betwen
Int , Float ? an example for a question :confused:

  • bool - true or false (boolean in js, bool in c#)

  • int - whole numbers (1, 10, 35336, -10)

  • float - deccimal numbers (3.6, 10.635, -0.0045 4.5f in c#)

  • var - ‘variable’ - indicates the next word will be the name of a variable (eg. “var myFloat = 3.6”. [js] now ‘myFloat’ has the float value of 3.6)

  • update - code in update runs once every frame

  • awake - code in awake runs once when the object the script is attached to become active or is instanced

  • sleep - ? - A rigidbody (physics entity) can be asleep, this means it does not apply physics to it

4 Likes

now thats what i meant !!!
thx man !! :smile:

2 Likes

yikes

FYI: this is a necro’d 6-year-old post.