Closed MolotovCherry closed 4 years ago
(from discussion on Discord https://discordapp.com/channels/652715801714884620/675466846127915019/715757603862609939) Example code is incomplete and hiding a user error where string fields are defined to be null. This is defined Unity behavior in C# and should not need to be documented here, thanks!
Yup. Thanks for the help. My bad as I'm new xD. Appreciate your project! ;)
I'm comparing the length of a string in an if statement,
While this compiles and runs, the moment the method with this code is invoked, this pops up.
Edit: So private strings are initialized to
null
? Can we put something in the documentation warning of the behavior?