I am using Unity 2022.3.6f1 for VRChat world development. I wanted to try to use some newer C# features. The setup currently uses C# 7.3 (apparently) and I’m trying to use a feature available from 8.0.
I’m finding all sorts of videos, websites and such that illustrate how to use these features, several threads about related things but nothing I do seems to affect the version of C# being used.
It could be related the VRChat tooling but when I try to set the Api Compatibility level in the Player settings to .NET Standard 2.1 it resets back to .NET Framework I don’t even know that that is a requirement but many postings seem to indicate that it is.
This is a long running official thread that still sees a lot of activity. Josh Peterson of Unity remains active in the thread, updating people about plans for future versions of Unity using Core CLR so that they can more directly support newer C# features as they are released. But, there may be newer things that you just cannot use yet until Unity supports them.
“EDIT (October 27, 2023): We’re focused internally on developing and shipping new .NET support, with our current target being .NET 8. We don’t have a shipment date to share publicly yet, but I’ll respond on this forum thread with details when I do.”