Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Nullable Types unity

int i = null; //Not nullable, syntax error
int? j = null; //Nullable!
 
bool b = null; //Not nullable, syntax error
bool? c = null;//Nullable!
 
Vector3 v = null;//Not nullable, syntax error
Vector3? w = null;//Nullable!
Source by cactiattack.wordpress.com #
 
PREVIOUS NEXT
Tagged: #Nullable #Types #unity
ADD COMMENT
Topic
Name
4+3 =