c# variable
// All types of variables
int MyNumber = 2; // A number
float MyDotNumber = 2.2; // A Number with decimals
string MyText = ("Hello World") //Text
bool YesOrNo = true; //True or False
// Formats
(Type) (Name) = (Value);
E.g:
int NameOfVariable = (Value depending on type)/*int*/int myNum = 5;
/*doube*/ double myDoubleNum = 5.99D;
/*char*/ char myLetter = 'D';
/*bool*/ bool myBool = true;
/*string*/ string myText = "Hello";
Also in C#:
- c# checksum
- Instantiate c#
- reload scene unity
- webclient c# example post
- c# while loop
- how to set progress openedge driver name for odbc connection c#
- how to put double quotes in a string c#
- string isnullorempty vs isnullorwhitespace
- how do i foreach c#
- take screenshot in c#
- vb.net check if datatable has rows
- how does Pow work C#
- .net loop through dictionary
- c# unhandled exception in thread
- application.stop unity
- convert string to boolean c#
- how to reference scripts in other scenes unity
- datetitime contrusctor c#
- unity html get request
- Unity if object doens't exist
- unity get velocity at point
- console.writeline c#
- condition when a animation finishes in unity