Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Unity Needs A Method for Ensuring a SerializeField is Not Null (Especially with C# 8)

$
0
0
With Unity now supporting C# 8.0 and nullable reference types it's now possible to cut down a lot of null checking code and to warn about nullability at compile time. Unfortunately SerializeField by its current nature always needs to be nullable, which cascades out into the rest of the code and limits the usefulness of nullable reference types. Of course sometimes it is valid to have nullable SerializeField but much like the motivation behind nullable reference types, I suspect the most...

Unity Needs A Method for Ensuring a SerializeField is Not Null (Especially with C# 8)

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>