var csharp

Code Example - var csharp

                
                        /*int*/int myNum = 5;
/*doube*/ double myDoubleNum = 5.99D;
/*char*/ char myLetter = 'D';
/*bool*/ bool myBool = true;
/*string*/ string myText = "Hello";
/*var*/ var myVar = "newewewewewewewewewe"
                    
                
 

how to create a variab;e in csharp

                        
                                var varName = test123
                            
                        
 

how to use var in csharp

                        
                                /*var*/ var MyVar = 5;
/*static*/ public static int MyStatic;
                            
                        
 

csharp varible

                        
                                public varible nameofvarible;//In Unity to esablish varible new slot should appear in the script componit and drag what element you want