Answers for "unity Type of conditional expression cannot be determined because there is no implicit conversion between 'Color' and '<null>'"

C#
0

unity Type of conditional expression cannot be determined because there is no implicit conversion between 'Color' and '<null>'

Eso es porque una parte de la condición es de distinto tipo que la otra.
Si por ejemplo tenemos esto dara ERROR: 
    int? number = true ? 5 : null

Debería quedar así:
    int? number = true ? (int?)5 : null;
Posted by: Guest on December-23-2020

Code answers related to "unity Type of conditional expression cannot be determined because there is no implicit conversion between 'Color' and '<null>'"

C# Answers by Framework

Browse Popular Code Answers by Language